]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_lockserv.cpp
Check for windows drive letters on the start of paths and treat them the same as...
[user/henk/code/inspircd.git] / src / modules / m_lockserv.cpp
index dfda9aaf75fcad282af264fffefee285b2a6d1b8..872678502ab45fd5175c63e8895c21205f216e22 100644 (file)
@@ -34,10 +34,10 @@ public:
                syntax.clear();
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = true;
-               user->WriteServ("988 %s %s :Closed for new connections", user->nick, user->server);
+               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);
                /* Dont send to the network */
                return CMD_LOCALONLY;
@@ -57,10 +57,10 @@ public:
                syntax.clear();
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                locked = false;
-               user->WriteServ("989 %s %s :Open for new connections", user->nick, user->server);
+               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);
                /* Dont send to the network */
                return CMD_LOCALONLY;
@@ -106,7 +106,7 @@ public:
        {
                if (locked)
                {
-                       User::QuitUser(ServerInstance, user, "Server is temporarily closed. Please try again later.");
+                       ServerInstance->Users->QuitUser(user, "Server is temporarily closed. Please try again later.");
                        return 1;
                }
                return 0;