From 5559f91fae373d93c2ceead1f8b90131efac6a8f Mon Sep 17 00:00:00 2001 From: Adam- Date: Fri, 15 Jan 2010 19:29:39 +0000 Subject: 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 --- src/botserv.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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) -- cgit