浏览代码

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

Bryan Drewery 16 年之前
父节点
当前提交
d65efaeadb
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;
     }