summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-05 02:33:43 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-07 15:57:35 +0200
commit933fdb87ea674ac30a4a970d2ed095c220c9ebcd (patch)
tree23d5d0a38f3c3e6b07ad7193b6022e41bb338550 /src/modules
parentfeb937edf676fa8bfd6f74dbe5fbdf218b25bbe2 (diff)
m_lockserv Remove obsolete comments and unnecessary string clear()s
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_lockserv.cpp6
1 files changed, 2 insertions, 4 deletions
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<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;
}
};