From 6a225f749e21c4efc6ac9053c86fce5c25516f60 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 7 Jul 2006 22:47:32 +0000 Subject: Typoed a const git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4157 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_t.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3