diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-13 18:15:34 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-13 18:15:34 +0200 |
commit | 3624c137a6db85eaab0372550c9dca79d6d21e55 (patch) | |
tree | cdfd14b2522583e057db26a2104397c05dc56c68 /include/inspircd.h | |
parent | b390ded3f3924cbd16a5dab53a981be279360124 (diff) |
Introduce ModeProcessFlags, can be passed to ModeParser::Process() to indicate local only mode changes and mode merges
Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global
This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.)
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 22a0bfaa5..aa6be2dee 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -554,22 +554,6 @@ class CoreExport InspIRCd Modules->AddService(*f); } - /** Send a modechange. - * The parameters provided are identical to that sent to the - * handler for class cmd_mode. - * @param parameters The mode parameters - * @param user The user to send error messages to - */ - void SendMode(const std::vector<std::string>& parameters, User *user); - - /** Send a modechange and route it to the network. - * The parameters provided are identical to that sent to the - * handler for class cmd_mode. - * @param parameters The mode parameters - * @param user The user to send error messages to - */ - void SendGlobalMode(const std::vector<std::string>& parameters, User *user); - /** Match two strings using pattern matching, optionally, with a map * to check case against (may be NULL). If map is null, match will be case insensitive. * @param str The literal string to match against @@ -763,8 +747,3 @@ class CommandModule : public Module return Version(cmd.name, VF_VENDOR|VF_CORE); } }; - -inline void InspIRCd::SendMode(const std::vector<std::string>& parameters, User* user) -{ - this->Modes->Process(parameters, user); -} |