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

* Don't automatically add hostname of *!user@0.0.0.0

Bryan Drewery 16 лет назад
Родитель
Сommit
0958bdced5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/conf.c

+ 1 - 1
src/conf.c

@@ -1027,7 +1027,7 @@ void conf_add_userlist_bots()
         set_user(&USERENTRY_BOTADDR, u, bi);
         set_user(&USERENTRY_BOTADDR, u, bi);
 
 
       }
       }
-      if (bot->net.ip) {
+      if (bot->net.ip && strcmp(bot->net.ip, "0.0.0.0")) {
         simple_snprintf(uhost, sizeof(uhost), "*!%s@%s", conf.username, bot->net.ip);
         simple_snprintf(uhost, sizeof(uhost), "*!%s@%s", conf.username, bot->net.ip);
         if (!user_has_host(NULL, u, uhost) && !host_conflicts(uhost))
         if (!user_has_host(NULL, u, uhost) && !host_conflicts(uhost))
           addhost_by_handle(bot->nick, uhost);
           addhost_by_handle(bot->nick, uhost);