summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 11:37:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 11:37:57 +0000
commitcb38f65d8f5d6bb804b4a530ea334126def097dd (patch)
tree81fd5acc696ec622f71cd8817e154957af078dda /src/mode.cpp
parent2dab2f5663f435c8d6a4a8c817aa79d9e8df80b0 (diff)
TOPIC optimizations, fixes to mode setting with new custom_modes system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3512 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 18d8ba3f3..6ce15e203 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -881,7 +881,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
default:
string_list p;
p.clear();
- bool x = strchr(chan->custom_modes,*modechar);
+ bool x = chan->custom_modes[*modechar-65];
if ((!x && !mdir) || (x && mdir))
{
if (!ModeIsListMode(*modechar,MT_CHANNEL))