diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-15 19:30:11 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-15 19:30:11 +0000 |
| commit | c4c1242ac73ed20ffbfe6ab3c47889fa5c3cbe04 (patch) | |
| tree | a65943ca755536504a5708fce0d7c50584fe6762 /src/channels.c | |
| parent | f4327898532fbd1c95d50f3a19b9d096668315fe (diff) | |
Fixed bug #1135 - Don't kick or ban ulined clients
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2762 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
| -rw-r--r-- | src/channels.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c index b426d73e4..5f18ad4bb 100644 --- a/src/channels.c +++ b/src/channels.c @@ -932,6 +932,10 @@ bool Channel::Kick(BotInfo *bi, User *u, const char *reason, ...) vsnprintf(buf, BUFSIZE - 1, reason, args); va_end(args); + /* May not kick ulines */ + if (is_ulined(u->server->name)) + return false; + EventReturn MOD_RESULT; FOREACH_RESULT(I_OnBotKick, OnBotKick(bi, this, u, buf)); if (MOD_RESULT == EVENT_STOP) |
