X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodes%2Fcmode_t.cpp;h=836c86f34337cad69a428096609a94c66d86525f;hb=9fb4cb8d3355fb6d80b18f1a6b6d65106720a428;hp=ed4285f0cd185c7a93bfc482f4facd2e2af2de4a;hpb=7f4ee2f9f2e3af860d4c4eaa19d8f12611e5fe83;p=user%2Fhenk%2Fcode%2Finspircd.git 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