From 7666e1ad84728767aa47dafc4ffdf82bbbd9aa6e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 7 Jul 2006 15:29:42 +0000 Subject: Aaaand, correct all the obligitary typos git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 059a9027b..0a490f92e 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -666,10 +666,12 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user) return; } -ModeParser::AddMode(ModeHandler* mh, unsigned const char* modeletter) +bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter) { - mh->GetType() == MODETYPE_USER ? mask = MASK_USER : mask = MASK_CHANNEL; + unsigned char mask = 0; + mh->GetModeType() == MODETYPE_USER ? mask = MASK_USER : mask = MASK_CHANNEL; modehandlers[(modeletter-65) | mask] = mh; + return true; } ModeParser::ModeParser() -- cgit v1.2.3