summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-02 13:30:24 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-02 13:30:24 +0100
commit860f5cbf1ea159d7d1c3fce2364747a822c50461 (patch)
treecc4f7e8bb3efc944b8ce101c5db46162b31f2834 /src/mode.cpp
parent44b5a8fa89d8c2bda767c0d5fe77c4d31061ce2b (diff)
parent90ab8cf4258a25e8403465ed86296fc74405620d (diff)
Merge branch 'master+serviceinit'
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp6
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 &parameter, bool adding)
{
/* We're either trying to add a mode we already have or