Bläddra i källkod

* Fix cmd_slowjoin not counting bots correctly. (fixes #431)

Bryan Drewery 17 år sedan
förälder
incheckning
f979f954f8
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -27,6 +27,7 @@
 * Show connection time in cmd_(net|bot)server now.
 * Fix a segfault in the settings handling code. (Could create very random looking segfaults)
 * Disable bot +f as all it did was cause a segfault. The flood code is unfinished. (fixes #429)
+* Fix cmd_slowjoin not counting bots correctly. (fixes #431)
 
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 * Fix a possible segfault when binaries compiled wrong

+ 1 - 1
src/mod/channels.mod/cmdschan.c

@@ -577,7 +577,7 @@ static void cmd_slowjoin(int idx, char *par)
     }
   }
 
-  if (shouldjoin(chan))
+  if (!conf.bot->hub && shouldjoin(chan))
     count++;
 
   dprintf(idx, "%i bots joining %s during the next %i seconds\n", count, chan->dname, delay);