From 176acbfdb0fde4d6f3b808a6af80e651220b96b7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 12 Mar 2020 18:24:50 +0000 Subject: Move CHANMODES to core_mode and add USERMODES. --- src/coremods/core_mode.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/coremods') 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& 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); -- cgit v1.2.3