summaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-05 16:58:50 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-05 16:58:50 +0100
commitcee5a82d95fc3f5d3670ef483998bfc2d4a5a82e (patch)
treed70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_ojoin.cpp
parent33d0a3b53a7bb8d2f13aac9ed2f81cde4dbbb4ff (diff)
parent0412378109ae9f618e47b2bb60729c0d8f29fe8d (diff)
Merge branch 'master+chanwritenotice'
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 88b63bef2..56cef10b4 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -58,9 +58,9 @@ class CommandOjoin : public SplitCommand
if (notice)
{
- channel->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s joined on official network business.",
- parameters[0].c_str(), user->nick.c_str());
- ServerInstance->PI->SendChannelNotice(channel, 0, user->nick + " joined on official network business.");
+ const std::string msg = user->nick + " joined on official network business.";
+ channel->WriteNotice(msg);
+ ServerInstance->PI->SendChannelNotice(channel, 0, msg);
}
}
else