Răsfoiți Sursa

* Localhub is not aggressive to a hub sharing the binary

Bryan Drewery 16 ani în urmă
părinte
comite
f965c27d77
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;
     }
   }