Explorar o código

* When auto adding hostname, do not consider -telnet! hostnames as conflicting.

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
d65efaeadb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/userrec.c

+ 3 - 0
src/userrec.c

@@ -92,6 +92,9 @@ struct userrec *host_conflicts(char *host)
 
   for (u = userlist; u; u = u->next) {
     for (q = (struct list_type *) get_user(&USERENTRY_HOSTS, u); q; q = q->next) {
+      // Ignore -telnet!*@* hosts for this check, as this is for irc.
+      if (!strncmp(q->extra, "-telnet!", 8))
+        continue;
       if (wild_match(host, q->extra) || wild_match(q->extra, host))
         return u;
     }