diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-02 13:30:24 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-02 13:30:24 +0100 |
commit | 860f5cbf1ea159d7d1c3fce2364747a822c50461 (patch) | |
tree | cc4f7e8bb3efc944b8ce101c5db46162b31f2834 /src/mode.cpp | |
parent | 44b5a8fa89d8c2bda767c0d5fe77c4d31061ce2b (diff) | |
parent | 90ab8cf4258a25e8403465ed86296fc74405620d (diff) |
Merge branch 'master+serviceinit'
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 671b5d854..6038f6f5b 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -90,6 +90,12 @@ bool ModeHandler::ResolveModeConflict(std::string& theirs, const std::string& ou return (theirs < ours); } +void ModeHandler::RegisterService() +{ + ServerInstance->Modes.AddMode(this); + ServerInstance->Modules.AddReferent((GetModeType() == MODETYPE_CHANNEL ? "mode/" : "umode/") + name, this); +} + ModeAction SimpleUserModeHandler::OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { /* We're either trying to add a mode we already have or |