]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_kick.c
Add chmode +E, which prevents ops from using /kick on channels where it is set.
[irc/rqf/shadowircd.git] / modules / core / m_kick.c
index 88befacdb47e4e0c99c14ac55ec27bedcb41ba7c..841485f871b912ebae3d8fe79c9598b8c4518859 100644 (file)
@@ -158,6 +158,14 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        return 0;
                }
 
+               if(MyClient(source_p) && chptr->mode.mode & MODE_NOKICK)
+               {
+                       sendto_one_numeric(source_p, ERR_NOKICK,
+                                       form_str(ERR_NOKICK),
+                                       chptr->chname);
+                       return 0;
+               }
+
                if(MyClient(source_p))
                {
                        hook_data_channel_approval hookdata;