]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
Added static_quit support. Pretty much what the name implies.
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index b0cd6b08baf4034510b0e69e76b80fbc96eab853..3159a3f7c0ded6c9ab7d80d1f78afe5d6d7c6d2c 100644 (file)
@@ -58,7 +58,6 @@ static void part_one_client(struct Client *client_p,
 
 /*
 ** m_part
-**      parv[0] = sender prefix
 **      parv[1] = channel
 **      parv[2] = reason
 */
@@ -124,12 +123,12 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, ch
         *  Remove user from the old channel (if any)
         *  only allow /part reasons in -m chans
         */
-       if(reason[0] && (is_chanop(msptr) || !MyConnect(source_p) ||
+       if(reason[0] && (is_any_op(msptr) || !MyConnect(source_p) ||
                         ((can_send(chptr, source_p, msptr) > 0 &&
                           (source_p->localClient->firsttime +
                            ConfigFileEntry.anti_spam_exit_message_time) < rb_current_time()))))
        {
-               if(chptr->mode.mode & MODE_NOCOLOR)
+               if(chptr->mode.mode & MODE_NOCOLOR && (!ConfigChannel.exempt_cmode_c || !is_any_op(msptr)))
                {
                        rb_strlcpy(reason2, reason, BUFSIZE);
                        strip_colour(reason2);