Quellcode durchsuchen

* Fixed users showing up in .whom after doing .botcmd and relinking the bot which the cmd was ran on. (#9)

svn: 1948
Bryan Drewery vor 21 Jahren
Ursprung
Commit
bbb67dd74a
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/botnet.c

+ 1 - 0
doc/UPDATES

@@ -46,6 +46,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Fixed bot not updating it's hostmask when reconnecting to server
 * Fixed bot sending +Ie modes before recieving list after opping.
 * Fixed channel bans not displaying on hubs (#1)
+* Fixed users showing up in .whom after doing .botcmd and relinking the bot which the cmd was ran on. (#9)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 1 - 1
src/botnet.c

@@ -778,7 +778,7 @@ void dump_links(int z)
 
   /* Dump party line members */
   for (i = 0; i < dcc_total; i++) {
-    if (dcc[i].type && dcc[i].type == &DCC_CHAT) {
+    if (dcc[i].type && dcc[i].type == &DCC_CHAT && !dcc[i].simul) {
       if ((dcc[i].u.chat->channel >= 0) && (dcc[i].u.chat->channel < GLOBAL_CHANS)) {
         l = simple_sprintf(x, "j !%s %s %D %c%D %s\n", conf.bot->nick, dcc[i].nick, dcc[i].u.chat->channel, geticon(i), dcc[i].sock, dcc[i].host);
 	tputs(dcc[z].sock, x, l);