diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-12 18:24:50 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-12 18:32:35 +0000 |
commit | 176acbfdb0fde4d6f3b808a6af80e651220b96b7 (patch) | |
tree | 09b54479654aaab2e1ffa0001d9376575506d374 /src/coremods | |
parent | 1efc234a54bd66714f9743ca7d1f3d5c0be3628e (diff) |
Move CHANMODES to core_mode and add USERMODES.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_mode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coremods/core_mode.cpp b/src/coremods/core_mode.cpp index 99dcf8638..f40d02d2e 100644 --- a/src/coremods/core_mode.cpp +++ b/src/coremods/core_mode.cpp @@ -285,6 +285,12 @@ class CoreModMode : public Module { } + void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE + { + tokens["CHANMODES"] = ServerInstance->Modes->GiveModeList(MODETYPE_CHANNEL); + tokens["USERMODES"] = ServerInstance->Modes->GiveModeList(MODETYPE_USER); + } + Version GetVersion() CXX11_OVERRIDE { return Version("Provides the MODE command", VF_VENDOR|VF_CORE); |