Sfoglia il codice sorgente

* Port [3237] to 1.2.14
* Don't auto add [hosts for] disabled bots



svn: 3238

Bryan Drewery 19 anni fa
parent
commit
5cba79f027
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/conf.c

+ 1 - 1
src/conf.c

@@ -1198,7 +1198,7 @@ void conf_add_userlist_bots()
 
   for (bot = conf.bots; bot && bot->nick; bot = bot->next) {
     /* Don't auto-add hubs. */
-    if (!bot->hub && tands > 0) {
+    if (!bot->hub && tands > 0 && !bot->disabled) {
       u = get_user_by_handle(userlist, bot->nick);
       if (!u) {
         putlog(LOG_MISC, "*", "Adding bot '%s' as it has been added to the binary config.", bot->nick);