]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_mode.cpp
Add a typedef for the data provider map.
[user/henk/code/inspircd.git] / src / coremods / core_mode.cpp
index 99dcf86388eed515e5fecdc9a7df01a7481224c5..55ca4bdb088a97eaf7c8d03aaa9980ac6c090f38 100644 (file)
@@ -3,9 +3,9 @@
  *
  *   Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
  *   Copyright (C) 2019 Robby <robby@chatbelgie.be>
- *   Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
- *   Copyright (C) 2014-2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 20142016 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -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);