Procházet zdrojové kódy

* Fixed cmd_bots showing all bots instead of just the ones up

svn: 1134
Bryan Drewery před 22 roky
rodič
revize
ff6cb85048
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/botnet.c

+ 1 - 0
doc/UPDATES

@@ -4,6 +4,7 @@ This is a summary of ChangeLog basically.
 
 1.Fixed cmd_help to display the proper entry.
 2.HUBS now save userfile on remote cmd_chattr.
+3.cmd_bots was showing all bots instead of just the ones up.
 
 1.1.8
 

+ 1 - 1
src/botnet.c

@@ -551,7 +551,7 @@ tell_bots(int idx, int up)
   for (u = userlist; u; u = u->next) {
     if (u->bot) {
       if (egg_strcasecmp(u->handle, conf.bot->nick)) {
-        if ((!up && nextbot(u->handle) == -1) || (up && nextbot(u->handle))) {
+        if ((!up && !findbot(u->handle)) || (up && findbot(u->handle))) {
           strcat(work, u->handle);
           cnt++;
           tot++;