Explorar el Código

* Fix adding child bots

Bryan Drewery hace 16 años
padre
commit
a95a69a2c8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/chanprog.c

+ 2 - 2
src/chanprog.c

@@ -549,8 +549,8 @@ void add_myself_to_userlist() {
 void add_child_bots() {
   conf_bot* bot = conf.bots->next; //Skip myself
   if (bot && bot->nick) {
-    for (bot = conf.bots; bot && bot->nick; bot = bot->next) {
-      add_bot_userlist(conf.bot->nick);
+    for (; bot && bot->nick; bot = bot->next) {
+      add_bot_userlist(bot->nick);
     }
   }
 }