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:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user