Просмотр исходного кода

* cmd_pls_user wasn't correctly sharing multiple hosts to the botnet. (#48)

svn: 2066
Bryan Drewery 21 лет назад
Родитель
Сommit
6f89031159
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -104,6 +104,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Fixed an outstanding bug on linking from a hub to another hub.
 * Added log msg (+w) for when a msg is received when umode +g. (#44)
 * cmd_botcmd now works correctly when the target is the bot you're on. (#46)
+* cmd_pls_user wasn't correctly sharing multiple hosts to the botnet. (#48)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 1 - 1
src/cmds.c

@@ -3319,7 +3319,7 @@ static void cmd_pls_user(int idx, char *par)
     dprintf(idx, "Added %s (%s) with no flags.\n", handle, host);
     while (par[0]) {
       host = newsplit(&par);
-      set_user(&USERENTRY_HOSTS, u2, host);
+      addhost_by_handle(handle, host);
       dprintf(idx, "Added host '%s' to %s.\n", host, handle);
     }
     make_rand_str(s, MAXPASSLEN);