summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-20 09:10:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-20 09:10:55 +0000
commit00d4806d30a1e3b111b1676ff34a75faf25d6a1b (patch)
tree2b1c19b93f5f2e9c3cd0f2058232d1eb0f5b0f19 /src/channels.cpp
parent3c43bf1c71c49d07b682c260a3b251e536385dba (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/trunk/inspircd@4036 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 61d82a451..c4948c2e2 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -603,6 +603,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))