aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-06-20 09:11:03 +0000
committerGravatar brain2006-06-20 09:11:03 +0000
commitec448c2898ff2794fb0f908f54a4d80fabfbcd1d (patch)
tree0e6b341f15824e5e46a88af16aca8bc8b78cbc8d /src/channels.cpp
parentUn-break expiry, which my last commit did. (diff)
Don't allow non-ulines to kick ulines from channels - return numeric 482 if this is attempted (you are not a chanop) with different text
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4037 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 52d0dccbd..1939c6d31 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -617,6 +617,11 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason)
WriteServ(src->fd,"441 %s %s %s :They are not on that channel",src->nick, user->nick, Ptr->name);
return;
}
+ if ((is_uline(user->server)) && (!is_uline(src->server)))
+ {
+ WriteServ(src->fd,"482 %s %s :Only a u-line may kick a u-line from a channel.",src->nick, Ptr->name);
+ return;
+ }
int MOD_RESULT = 0;
if (!is_uline(src->server))