diff --git a/Changes b/Changes index d941726e3..781703ed0 100644 --- a/Changes +++ b/Changes @@ -603,3 +603,5 @@ to a default of logging errors to ircd.log. Suggested by w00t (#0002327). - Fixed shuns not working as target in spamfilter and ban version { }, reported by Bugz (#0002223). +- Fixed a bug where shuns placed on IP's did not take effect to currently connected users. +- Fixed a small doc bug regarding shun in spamfilter, reported by KnuX (#0002338). diff --git a/doc/unreal32docs.html b/doc/unreal32docs.html index 3d36b7258..a4e0b0b73 100644 --- a/doc/unreal32docs.html +++ b/doc/unreal32docs.html @@ -27,7 +27,7 @@ English | German |
+ Last doc update: 2005-02-13set::spamfilter::ban-time allows you to modify the default ban time for *lines added by spamfilter (default: 1 day)
- set::spamfilter::ban-reason allows you to specify a default reason for the *lines (default: 'Spam/advertising')
+
set::spamfilter::ban-time allows you to modify the default ban time for *lines/shuns added by spamfilter (default: 1 day)
+ set::spamfilter::ban-reason allows you to specify a default reason (default: 'Spam/advertising')
set::spamfilter::virus-help-channel allows you to specify the channel to join for action 'viruschan' (default: #help)
set::spamfilter::virus-help-channel-deny allows you to block any normal joins to virus-help-channel (default: no)
Examples:
@@ -2294,9 +2294,9 @@ set {
If you specify an 'action' like zline/gline/etc in ban version, then you can specify here
how long the ip should be banned, the default is 86400 (1 day).
set::spamfilter::ban-time <value>
- Same as above but for *lines added by spamfilter
set::spamfilter::ban-reason <reason>
- Reason to be used for *lines added by spamfilter
set::spamfilter::virus-help-channel <channel>
The channel to use for the 'viruschan' action in spamfilter
set::spamfilter::virus-help-channel-deny <yes|no>
diff --git a/src/s_kline.c b/src/s_kline.c
index 3afdcd924..18f6ef097 100644
--- a/src/s_kline.c
+++ b/src/s_kline.c
@@ -232,21 +232,15 @@ aClient *acptr;
cip = GetIP(acptr);
- if (!(*tmp->hostmask < '0') && (*tmp->hostmask > '9'))
+ if ((*tmp->hostmask >= '0') && (*tmp->hostmask <= '9'))
is_ip = 1;
else
is_ip = 0;
- if (is_ip ==
- 0 ? (!match(tmp->hostmask,
- chost)
- && !match(tmp->usermask,
- cname)) : (!match(tmp->
- hostmask, chost)
- || !match(tmp->hostmask,
- cip))
- && !match(tmp->usermask,
- cname))
+ if (is_ip == 0 ?
+ (!match(tmp->hostmask, chost) && !match(tmp->usermask, cname)) :
+ (!match(tmp->hostmask, chost) || !match(tmp->hostmask, cip))
+ && !match(tmp->usermask, cname))
{
ClearShunned(acptr);
#ifdef SHUN_NOTICES