]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_t.cpp
Add usermode +o, with special checking so that an oper may only remove the mode not...
[user/henk/code/inspircd.git] / src / modes / cmode_t.cpp
index ed4285f0cd185c7a93bfc482f4facd2e2af2de4a..836c86f34337cad69a428096609a94c66d86525f 100644 (file)
@@ -10,9 +10,9 @@ ModeChannelTopicOps::ModeChannelTopicOps() : ModeHandler('t', 0, 0, false, MODET
 
 ModeAction ModeChannelTopicOps::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
 {
-       if (channel->modes[CM_OPTOPIC] != adding)
+       if (channel->modes[CM_TOPICLOCK] != adding)
        {
-               channel->modes[CM_OPTOPIC] = adding;
+               channel->modes[CM_TOPICLOCK] = adding;
                return MODEACTION_ALLOW;
        }
        else