Sfoglia il codice sorgente

* cmd_uplink fix

svn: 473
Bryan Drewery 22 anni fa
parent
commit
8db0227e92
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/cmds.c

+ 4 - 1
src/cmds.c

@@ -1627,7 +1627,10 @@ static void cmd_uplink(struct userrec *u, int idx, char *par)
     dprintf(idx, STR("Useful only for bots.\n"));
     return;
   }
-  dprintf(idx, STR("Changed bot's uplink.\n"));
+  if (uplink && uplink[0])
+    dprintf(idx, STR("Changed bot's uplink.\n"));
+  else
+    dprintf(idx, STR("Cleared bot's uplink.\n"));
   obi = get_user(&USERENTRY_BOTADDR, u1);
   bi = user_malloc(sizeof(struct bot_addr));