From 8f901b33a8d2ee0d318ae5feba3d84f1af939f22 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 18 Feb 2014 13:41:01 +0100 Subject: Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType --- src/mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index eeab0de3a..90b8efeb8 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -764,7 +764,7 @@ PrefixMode* ModeParser::FindPrefix(unsigned const char pfxletter) return NULL; } -std::string ModeParser::GiveModeList(ModeMasks m) +std::string ModeParser::GiveModeList(ModeType mt) { std::string type1; /* Listmodes EXCEPT those with a prefix */ std::string type2; /* Modes that take a param when adding or removing */ @@ -773,7 +773,7 @@ std::string ModeParser::GiveModeList(ModeMasks m) for (unsigned char mode = 'A'; mode <= 'z'; mode++) { - unsigned char pos = (mode-65) | m; + unsigned char pos = (mode-65) | ((mt == MODETYPE_CHANNEL) ? MASK_CHANNEL : MASK_USER); /* One parameter when adding */ if (modehandlers[pos]) { -- cgit v1.3.1-10-gc9f91