Просмотр исходного кода

* Localhub is not aggressive to a hub sharing the binary

Bryan Drewery 16 лет назад
Родитель
Сommit
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;
     }
   }