1
0
Эх сурвалжийг харах

* Don't see 'user@::' hostname automatically

Bryan Drewery 16 жил өмнө
parent
commit
b4f5a1b0b3
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/conf.c

+ 1 - 1
src/conf.c

@@ -1051,7 +1051,7 @@ void conf_add_userlist_bots()
         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);
       }
       }
-      if (bot->net.ip6) {
+      if (bot->net.ip6 && strcmp(bot->net.ip6, "::")) {
         simple_snprintf(uhost, sizeof(uhost), "*!%s@%s", conf.username, bot->net.ip6);
         simple_snprintf(uhost, sizeof(uhost), "*!%s@%s", conf.username, bot->net.ip6);
         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);