]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_lockserv Remove obsolete comments and unnecessary string clear()s
authorattilamolnar <attilamolnar@hush.com>
Thu, 5 Jul 2012 00:33:43 +0000 (02:33 +0200)
committerattilamolnar <attilamolnar@hush.com>
Sat, 7 Jul 2012 13:57:35 +0000 (15:57 +0200)
src/modules/m_lockserv.cpp

index cc2e253081999d596eb151be0df82e9b2e464e60..dc71101a86916878ee75f2dda0cfe4df6385f9b8 100644 (file)
@@ -34,7 +34,7 @@ class CommandLockserv : public Command
 public:
        CommandLockserv(Module* Creator, bool& lock) : Command(Creator, "LOCKSERV", 0), locked(lock)
        {
-               flags_needed = 'o'; syntax.clear();
+               flags_needed = 'o';
        }
 
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
@@ -42,7 +42,6 @@ public:
                locked = true;
                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;
        }
 };
@@ -55,7 +54,7 @@ private:
 public:
        CommandUnlockserv(Module* Creator, bool &lock) : Command(Creator, "UNLOCKSERV", 0), locked(lock)
        {
-               flags_needed = 'o'; syntax.clear();
+               flags_needed = 'o';
        }
 
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
@@ -63,7 +62,6 @@ public:
                locked = false;
                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;
        }
 };