1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 16:23:13 +02:00

Made except ban override ban ip

This commit is contained in:
codemastr
2003-04-13 17:42:23 +00:00
parent a38c76dd44
commit c8477ddb6a
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -2047,3 +2047,4 @@ seen. gmtime warning still there
of replacing the word with "<censored>" it will block the message from ever being sent.
(#0000557) suggested by paranomix
- Made /stats b output badword quit {} (#0000883) reported by AngryWolf
- Made except ban {} override ban ip {} (suggested by Lithium).
+2 -1
View File
@@ -1976,7 +1976,8 @@ ConfigItem_ban *Find_ban(char *host, short type)
if (ban->flag.type == type)
if (!match(ban->mask, host)) {
/* Person got a exception */
if (type == CONF_BAN_USER && Find_except(host, CONF_EXCEPT_BAN))
if ((type == CONF_BAN_USER || type == CONF_BAN_IP)
&& Find_except(host, CONF_EXCEPT_BAN))
return NULL;
return ban;
}