summaryrefslogtreecommitdiff
path: root/src/snomasks.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-05-14 16:24:08 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-05-14 16:24:08 -0700
commit23e8bba13c55d33ce89d505780da36c9589e300a (patch)
tree85a2e81cde272a0900b0e448d2d1fabdfd7e897e /src/snomasks.cpp
parentc5ab97b1efe26609e7b9e3ff2301ad0c0911a0f6 (diff)
parent226a95aab09b9e1f43f61e78179bfa1135816c2d (diff)
Merge pull request #523 from SaberUK/master+server-notice
Add method for writing server notices.
Diffstat (limited to 'src/snomasks.cpp')
-rw-r--r--src/snomasks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index 8ab5682d6..f018a0d1a 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -120,7 +120,7 @@ void Snomask::SendMessage(const std::string &message, char mysnomask)
User* a = *i;
if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsNoticeMaskSet(mysnomask) && !a->quitting)
{
- a->WriteServ("NOTICE %s :*** %s: %s", a->nick.c_str(), desc.c_str(), message.c_str());
+ a->WriteNotice("*** " + desc + ": " + message);
}
i++;
@@ -155,7 +155,7 @@ void Snomask::Flush()
User* a = *i;
if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsNoticeMaskSet(LastLetter) && !a->quitting)
{
- a->WriteServ("NOTICE %s :*** %s: %s", a->nick.c_str(), desc.c_str(), mesg.c_str());
+ a->WriteNotice("*** " + desc + ": " + mesg);
}
i++;