소스 검색

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

Bryan Drewery 16 년 전
부모
커밋
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);
 
       }
-      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);
         if (!user_has_host(NULL, u, uhost) && !host_conflicts(uhost))
           addhost_by_handle(bot->nick, uhost);