]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_lusers.cpp
Prevent users from sending an empty TAGMSG.
[user/henk/code/inspircd.git] / src / coremods / core_lusers.cpp
index 7f1903dd0628d5d26a447587fda4ebe87754cece..62a6ef48c1fd8cf28c0c7bfe4e573aff7616f316 100644 (file)
@@ -1,8 +1,13 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2017-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
- *   Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net>
+ *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
+ *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
+ *   Copyright (C) 2006, 2010 Craig Edwards <brain@inspircd.org>
  *
  * 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
@@ -61,12 +66,12 @@ class CommandLusers : public Command
         * @param user The user issuing the command
         * @return A value from CmdResult to indicate command success or failure.
         */
-       CmdResult Handle(const std::vector<std::string>& parameters, User *user);
+       CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE;
 };
 
 /** Handle /LUSERS
  */
-CmdResult CommandLusers::Handle (const std::vector<std::string>&, User *user)
+CmdResult CommandLusers::Handle(User* user, const Params& parameters)
 {
        unsigned int n_users = ServerInstance->Users->RegisteredUserCount();
        ProtocolInterface::ServerList serverlist;
@@ -110,7 +115,7 @@ public:
        {
        }
 
-       void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding)
+       void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding) CXX11_OVERRIDE
        {
                if (dest->registered != REG_ALL)
                        return;
@@ -166,7 +171,7 @@ class ModuleLusers : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("LUSERS", VF_VENDOR | VF_CORE);
+               return Version("Provides the LUSERS command", VF_VENDOR | VF_CORE);
        }
 };