diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_lockserv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 872678502..203f030ca 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -37,8 +37,8 @@ public: CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { locked = true; - 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); + user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server); + ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_LOCALONLY; } @@ -60,8 +60,8 @@ public: CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { locked = false; - 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); + user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server); + ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_LOCALONLY; } |