Explorar o código

* Localhub is not aggressive to a hub sharing the binary

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
f965c27d77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }
   }