diff options
-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)) |