]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
Add is_any_op() in preperation for adding +ah, start using it instead of is_chanop...
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index 5e38047aac3b8cb8b118167f012e34e9a46f9822..61c585b7c2ce540b9cf1b0b515f08ee511b36b33 100644 (file)
@@ -123,7 +123,7 @@ 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()))))