]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_helpop.cpp
Send the ACCEPT and KEYLEN ISUPPORT tokens.
[user/henk/code/inspircd.git] / src / modules / m_helpop.cpp
index 95f69774bb0cad6cc543f7aa964b1688ac361342..b8c5d30294ed9e838c350e168dba62a0477c0bf9 100644 (file)
 
 #include "inspircd.h"
 
+enum
+{
+       // From UnrealIRCd.
+       RPL_WHOISHELPOP = 310
+};
+
 typedef std::map<std::string, std::string, irc::insensitive_swo> HelpopMap;
 static HelpopMap helpop_map;
 
@@ -50,7 +56,7 @@ class CommandHelpop : public Command
                syntax = "<any-text>";
        }
 
-       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
+       CmdResult Handle(const std::vector<std::string>& parameters, User* user) CXX11_OVERRIDE
        {
                const std::string& parameter = (!parameters.empty() ? parameters[0] : startkey);
 
@@ -145,7 +151,7 @@ class ModuleHelpop : public Module, public Whois::EventListener
                {
                        if (whois.GetTarget()->IsModeSet(ho))
                        {
-                               whois.SendLine(310, "is available for help.");
+                               whois.SendLine(RPL_WHOISHELPOP, "is available for help.");
                        }
                }