From: attilamolnar Date: Thu, 5 Jul 2012 00:33:43 +0000 (+0200) Subject: m_lockserv Remove obsolete comments and unnecessary string clear()s X-Git-Tag: v2.0.23~639 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=inline;h=933fdb87ea674ac30a4a970d2ed095c220c9ebcd;p=user%2Fhenk%2Fcode%2Finspircd.git m_lockserv Remove obsolete comments and unnecessary string clear()s --- diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index cc2e25308..dc71101a8 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -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 ¶meters, 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 ¶meters, 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; } };