Explorar o código

* Add local bots to internal userlist on load

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
978c1c9c1e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/conf.c

+ 3 - 0
src/conf.c

@@ -486,6 +486,9 @@ conf_addbot(const char *nick, const char *ip, const char *host, const char *ip6)
     conf.localhub = strdup(bot->nick);
   }
 
+  //Add this bot to the userlist
+  if (!bot->u)
+    userlist = adduser(userlist, bot->nick, "none", "-", USER_OP, 1);
   list_append((struct list_type **) &(conf.bots), (struct list_type *) bot);
 }