Explorar el Código

* Localhub is not aggressive to a hub sharing the binary

Bryan Drewery hace 16 años
padre
commit
f965c27d77
Se han modificado 1 ficheros con 1 adiciones y 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;
     }
   }