From e35772f19024fb12edda9cff19d3812272f444db Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 1 Sep 2013 15:00:01 +0200 Subject: m_modenotice Use WriteNotice() --- src/modules/m_modenotice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_modenotice.cpp b/src/modules/m_modenotice.cpp index 8998ea8b1..e02c9147f 100644 --- a/src/modules/m_modenotice.cpp +++ b/src/modules/m_modenotice.cpp @@ -30,6 +30,7 @@ class CommandModeNotice : public Command CmdResult Handle(const std::vector& parameters, User *src) { + std::string msg = "*** From " + src->nick + ": " + parameters[1]; int mlen = parameters[0].length(); for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { @@ -39,8 +40,7 @@ class CommandModeNotice : public Command if (!user->IsModeSet(parameters[0][n])) goto next_user; } - user->Write(":%s NOTICE %s :*** From %s: %s", ServerInstance->Config->ServerName.c_str(), - user->nick.c_str(), src->nick.c_str(), parameters[1].c_str()); + user->WriteNotice(msg); next_user: ; } return CMD_SUCCESS; -- cgit v1.2.3