summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-01 15:00:01 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-11 12:11:16 +0200
commite35772f19024fb12edda9cff19d3812272f444db (patch)
treef8ad5f1a409031f7d00063d651f1a6cdcd85b747
parent1f6ba902a6c45d84fcaf534d429ca1084ef35911 (diff)
m_modenotice Use WriteNotice()
-rw-r--r--src/modules/m_modenotice.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>& 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;