]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_topic.c
Do not allow a topic change if a user may not send to the channel
[irc/rqf/shadowircd.git] / modules / m_topic.c
index ff72fb4c23559e6b0cf7b7da04f51ae5450e6b5a..6b7780523e4cbb42840d71517613be645885fb4e 100644 (file)
@@ -116,7 +116,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                        return 0;
                }
 
-               if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_chanop(msptr))
+               if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_any_op(msptr) && !can_send(chptr, source_p, msptr))
                {
                        if(IsOverride(source_p))
                        {