aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_lockserv.cpp
diff options
context:
space:
mode:
authorGravatar Adam2013-11-12 06:51:31 -0500
committerGravatar Adam2013-11-12 06:51:31 -0500
commit6c7a3ceb6c674a9af09da955ee0238e9291cf29a (patch)
treec9fd79d5814685e43f5d9ade75cad5f11da06364 /src/modules/m_lockserv.cpp
parentMerge pull request #672 from SaberUK/master+rt-link-err (diff)
Use WriteNumeric() everywhere we send numerics and include the user's nick automatically
Diffstat (limited to 'src/modules/m_lockserv.cpp')
-rw-r--r--src/modules/m_lockserv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp
index ea5ad52de..56c7b9c94 100644
--- a/src/modules/m_lockserv.cpp
+++ b/src/modules/m_lockserv.cpp
@@ -44,7 +44,7 @@ class CommandLockserv : public Command
}
locked = true;
- user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server.c_str());
+ user->WriteNumeric(988, "%s :Closed for new connections", user->server.c_str());
ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used LOCKSERV to temporarily disallow new connections", user->nick.c_str());
return CMD_SUCCESS;
}
@@ -69,7 +69,7 @@ class CommandUnlockserv : public Command
}
locked = false;
- user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server.c_str());
+ user->WriteNumeric(989, "%s :Open for new connections", user->server.c_str());
ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used UNLOCKSERV to allow new connections", user->nick.c_str());
return CMD_SUCCESS;
}