]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_lockserv.cpp
Change to Duration for second param
[user/henk/code/inspircd.git] / src / modules / m_lockserv.cpp
index 7fa9d4c10f4b3154dab0fcb61a39b373ddabdf54..100b7864b70803a5521fac51ae2c1e69a0b5295b 100644 (file)
@@ -33,7 +33,7 @@ public:
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = true;
-               user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server);
+               user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server.c_str());
                ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str());
                /* Dont send to the network */
                return CMD_SUCCESS;
@@ -54,7 +54,7 @@ public:
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = false;
-               user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server);
+               user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server.c_str());
                ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str());
                /* Dont send to the network */
                return CMD_SUCCESS;
@@ -74,7 +74,7 @@ private:
        }
 
 public:
-       ModuleLockserv(InspIRCd* Me) : lockcommand(this, locked), unlockcommand(this, locked)
+       ModuleLockserv() : lockcommand(this, locked), unlockcommand(this, locked)
        {
                ResetLocked();
                ServerInstance->AddCommand(&lockcommand);
@@ -110,7 +110,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Allows locking of the server to stop all incoming connections till unlocked again", VF_VENDOR);
        }
 };