X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/4424a1942386eec7110e5b44f1226ff9eef1c509..d1c7eccf6af5e957c316a671cfdf5a00ab5043b3:/modules/core/m_part.c diff --git a/modules/core/m_part.c b/modules/core/m_part.c index 5e38047..61c585b 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -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()))))