]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_lockserv.cpp
Rip flood/threshold out of config classes also.
[user/henk/code/inspircd.git] / src / modules / m_lockserv.cpp
index f1d6e764fcd66d1cae21295fa36cca6b7351ff20..903427d2254e5daa0da346739b639372d3c01142 100644 (file)
@@ -34,11 +34,11 @@ public:
                syntax.clear();
        }
 
-       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
+       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = true;
-               user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick, user->server);
-               ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick);
+               user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server);
+               ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str());
                /* Dont send to the network */
                return CMD_LOCALONLY;
        }
@@ -57,11 +57,11 @@ public:
                syntax.clear();
        }
 
-       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
+       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = false;
-               user->WriteNumeric(989, "%s %s :Open for new connections", user->nick, user->server);
-               ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used UNLOCKSERV to allow for new connections", user->nick);
+               user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server);
+               ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str());
                /* Dont send to the network */
                return CMD_LOCALONLY;
        }
@@ -119,7 +119,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 1, VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 };