diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-20 09:10:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-20 09:10:55 +0000 |
commit | 00d4806d30a1e3b111b1676ff34a75faf25d6a1b (patch) | |
tree | 2b1c19b93f5f2e9c3cd0f2058232d1eb0f5b0f19 | |
parent | 3c43bf1c71c49d07b682c260a3b251e536385dba (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
-rw-r--r-- | src/channels.cpp | 5 |
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)) |