From 8456cf5ccd44911f4e56538fe0880dd7fc7cd96d Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 2 Oct 2009 03:15:46 +0000 Subject: Fix valgrind issues and crashes on exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_lockserv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_lockserv.cpp') diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 78c15dead..fa5fc3a3f 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -33,7 +33,7 @@ public: CmdResult Handle (const std::vector ¶meters, User *user) { locked = true; - user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server); + 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; @@ -54,7 +54,7 @@ public: CmdResult Handle (const std::vector ¶meters, User *user) { locked = false; - user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server); + 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; -- cgit v1.2.3