diff options
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/cmode_t.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cmode_t.cpp b/src/modes/cmode_t.cpp index ed4285f0c..836c86f34 100644 --- a/src/modes/cmode_t.cpp +++ b/src/modes/cmode_t.cpp @@ -10,9 +10,9 @@ ModeChannelTopicOps::ModeChannelTopicOps() : ModeHandler('t', 0, 0, false, MODET ModeAction ModeChannelTopicOps::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, 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 |