From 00d4806d30a1e3b111b1676ff34a75faf25d6a1b Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 20 Jun 2006 09:10:55 +0000 Subject: 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 --- src/channels.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/channels.cpp') 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)) -- cgit v1.2.3