1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 08:56:39 +02:00

BUILD : 1.7.18 (1224) BUGS : 663 NOTES : Fixed BotServ kicks to now obey the SignKick setting of the channel

git-svn-id: svn://svn.anope.org/anope/trunk@1224 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@943 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2007-01-10 20:21:45 +00:00
parent 264fb0c8bf
commit 4a8a6b8a4e
3 changed files with 22 additions and 3 deletions
+16 -2
View File
@@ -947,7 +947,15 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick,
av[2] = reason;
}
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s", av[2]);
/* Check if we need to do a signkick or not -GD */
if ((ci->flags & CI_SIGNKICK)
|| ((ci->flags & CI_SIGNKICK_LEVEL)
&& !check_access(requester, ci, CA_SIGNKICK)))
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s (%s)", av[2],
requester->nick);
else
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s", av[2]);
do_kick(ci->bi->nick, 3, av);
}
@@ -987,7 +995,13 @@ void bot_raw_kick(User * requester, ChannelInfo * ci, char *nick,
av[2] = reason;
}
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s", av[2]);
if ((ci->flags & CI_SIGNKICK)
|| ((ci->flags & CI_SIGNKICK_LEVEL)
&& !check_access(requester, ci, CA_SIGNKICK)))
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s (%s)", av[2],
requester->nick);
else
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s", av[2]);
do_kick(ci->bi->nick, 3, av);
}