]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Typoed a const
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 7 Jul 2006 22:47:32 +0000 (22:47 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 7 Jul 2006 22:47:32 +0000 (22:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4157 e03df62e-2008-0410-955e-edbf42e46eb7

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