diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-07 11:37:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-07 11:37:57 +0000 |
commit | cb38f65d8f5d6bb804b4a530ea334126def097dd (patch) | |
tree | 81fd5acc696ec622f71cd8817e154957af078dda /src/mode.cpp | |
parent | 2dab2f5663f435c8d6a4a8c817aa79d9e8df80b0 (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.cpp | 2 |
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)) |