From: brain Date: Fri, 7 Jul 2006 22:47:32 +0000 (+0000) Subject: Typoed a const X-Git-Tag: v2.0.23~8075 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6a225f749e21c4efc6ac9053c86fce5c25516f60;p=user%2Fhenk%2Fcode%2Finspircd.git Typoed a const git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4157 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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