diff options
| author | 2014-02-18 13:41:01 +0100 | |
|---|---|---|
| committer | 2014-02-18 13:41:01 +0100 | |
| commit | 8f901b33a8d2ee0d318ae5feba3d84f1af939f22 (patch) | |
| tree | 045c963aa883535deb11ccdd9e51bfd2020d9e7b /src/mode.cpp | |
| parent | Add ParamModeBase and ParamMode, change all parameter modes to inherit from P... (diff) | |
| download | inspircd++-8f901b33a8d2ee0d318ae5feba3d84f1af939f22.tar.gz inspircd++-8f901b33a8d2ee0d318ae5feba3d84f1af939f22.tar.bz2 inspircd++-8f901b33a8d2ee0d318ae5feba3d84f1af939f22.zip | |
Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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]) { |
