summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-07 15:29:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-07 15:29:42 +0000
commit7666e1ad84728767aa47dafc4ffdf82bbbd9aa6e (patch)
treece3c6db068a7a8a375c45c395485c351058f349d /src/mode.cpp
parenta1af610ac1916bc3a4f09962ac86a58883514e51 (diff)
Aaaand, correct all the obligitary typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp6
1 files changed, 4 insertions, 2 deletions
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()