]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_lockserv.cpp
add a couple of parenthesis to the password comparison, because i couldnt easily...
[user/henk/code/inspircd.git] / src / modules / m_lockserv.cpp
index cdb796390e4874d49f15f2a351835e0a819614b7..9c9baa522a73f1d79f559eb6ae47a435a61262cf 100644 (file)
@@ -28,16 +28,16 @@ private:
 
 public:
        CommandLockserv (InspIRCd* Instance, bool &lock)
-       : Command(Instance, "LOCKSERV", 'o', 0), locked(lock)
+       : Command(Instance, "LOCKSERV", "o", 0), locked(lock)
        {
                this->source = "m_lockserv.so";
                syntax.clear();
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, 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;
@@ -51,16 +51,16 @@ private:
 
 public:
        CommandUnlockserv (InspIRCd* Instance, bool &lock)
-       : Command(Instance, "UNLOCKSERV", 'o', 0), locked(lock)
+       : Command(Instance, "UNLOCKSERV", "o", 0), locked(lock)
        {
                this->source = "m_lockserv.so";
                syntax.clear();
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, 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;