diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-15 19:29:39 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-15 19:29:39 +0000 |
commit | 5559f91fae373d93c2ceead1f8b90131efac6a8f (patch) | |
tree | f82f61c32d6d806a43548f6cc2ce910509a7d066 /src | |
parent | 3dd71f207d8fb37ea27846a1c0a711b7ad46a318 (diff) |
Fixed bug #1135 - Don't allow BotServ to kick and ban ULined clients
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2761 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/botserv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/botserv.c b/src/botserv.c index b73961c59..33a5888a5 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -845,6 +845,10 @@ static void check_ban(ChannelInfo * ci, User * u, int ttbtype) if (!bd) return; + /* Bug #1135 - Don't kick/ban ULined clients */ + if (is_ulined(u->server->name)) + return; + bd->ttb[ttbtype]++; if (bd->ttb[ttbtype] == ci->ttb[ttbtype]) { char *av[4]; @@ -894,6 +898,10 @@ static void bot_kick(ChannelInfo * ci, User * u, int message, ...) if (!ci || !ci->bi || !ci->c || !u) return; + /* Bug #1135 - Don't kick ULined clients */ + if (is_ulined(u->server->name)) + return; + va_start(args, message); fmt = getstring(u->na, message); if (!fmt) |