diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-09-01 15:00:01 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-09-11 12:11:16 +0200 |
commit | e35772f19024fb12edda9cff19d3812272f444db (patch) | |
tree | f8ad5f1a409031f7d00063d651f1a6cdcd85b747 /src | |
parent | 1f6ba902a6c45d84fcaf534d429ca1084ef35911 (diff) |
m_modenotice Use WriteNotice()
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_modenotice.cpp | 4 |
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; |