diff options
| author | 2014-02-21 14:18:49 +0100 | |
|---|---|---|
| committer | 2014-02-21 14:18:49 +0100 | |
| commit | 9e123ad1218e8c3ff29cee2a8a6e1b4b6f56b33b (patch) | |
| tree | 5863fec6e189f27b9a9771d8ddaf6f4727bc4a79 /src/mode.cpp | |
| parent | Add a ModeParser::FindMode() overload that takes a mode name and a mode type (diff) | |
| download | inspircd++-9e123ad1218e8c3ff29cee2a8a6e1b4b6f56b33b.tar.gz inspircd++-9e123ad1218e8c3ff29cee2a8a6e1b4b6f56b33b.tar.bz2 inspircd++-9e123ad1218e8c3ff29cee2a8a6e1b4b6f56b33b.zip | |
Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt
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 17379b620..053a10ba1 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -251,7 +251,7 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, bool parameter = parameter.substr(0, 250); ModResult MOD_RESULT; - FIRST_MOD_RESULT(OnRawMode, MOD_RESULT, (user, chan, modechar, parameter, adding, pcnt)); + FIRST_MOD_RESULT(OnRawMode, MOD_RESULT, (user, chan, mh, parameter, adding)); if (IS_LOCAL(user) && (MOD_RESULT == MOD_RES_DENY)) return MODEACTION_DENY; @@ -535,7 +535,7 @@ void ModeParser::DisplayListModes(User* user, Channel* chan, std::string &mode_s return; ModResult MOD_RESULT; - FIRST_MOD_RESULT(OnRawMode, MOD_RESULT, (user, chan, mletter, "", true, 0)); + FIRST_MOD_RESULT(OnRawMode, MOD_RESULT, (user, chan, mh, "", true)); if (MOD_RESULT == MOD_RES_DENY) continue; |
