]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
Add use_part_messages config option. When disabled, this will show
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index 3159a3f7c0ded6c9ab7d80d1f78afe5d6d7c6d2c..09ff23662e54e7d1279d3d79fdecafbe1f152a70 100644 (file)
@@ -124,7 +124,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, ch
         *  only allow /part reasons in -m chans
         */
        if(reason[0] && (is_any_op(msptr) || !MyConnect(source_p) ||
-                        ((can_send(chptr, source_p, msptr) > 0 &&
+                        ((can_send(chptr, source_p, msptr) > 0 && ConfigFileEntry.use_part_messages &&
                           (source_p->localClient->firsttime +
                            ConfigFileEntry.anti_spam_exit_message_time) < rb_current_time()))))
        {