Преглед изворни кода

* Localhub is not aggressive to a hub sharing the binary

Bryan Drewery пре 16 година
родитељ
комит
f965c27d77
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/misc.c

+ 1 - 1
src/misc.c

@@ -994,7 +994,7 @@ int bot_aggressive_to(struct userrec *u)
 {
   if (conf.bot->localhub) {
     for (conf_bot* bot = conf.bots; bot && bot->nick; bot = bot->next) {
-      if (!strcmp(u->handle, bot->nick))
+      if (!bot->hub && !strcmp(u->handle, bot->nick))
         return 1;
     }
   }