diff options
author | Adam <Adam@anope.org> | 2017-10-07 18:37:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-07 18:37:51 -0400 |
commit | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (patch) | |
tree | 1a76f6d8072f2166aa74102dec8eff10e9c75e55 /src | |
parent | 7c744e34d477773db3accc5953b4aec3321f5774 (diff) |
SendMessage: don't interpret message as a format string
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index fa130204c..add38400e 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -353,9 +353,9 @@ void User::SendMessage(const MessageSource &source, const Anope::string &msg) if (buf.length() + add.length() > Config->LineWrap) { if (send_privmsg) - IRCD->SendPrivmsg(source, this->GetUID(), buf); + IRCD->SendPrivmsg(source, this->GetUID(), "{0}", buf); else - IRCD->SendNotice(source, this->GetUID(), buf); + IRCD->SendNotice(source, this->GetUID(), "{0}", buf); buf.clear(); add = word; @@ -367,9 +367,9 @@ void User::SendMessage(const MessageSource &source, const Anope::string &msg) if (!buf.empty()) { if (send_privmsg) - IRCD->SendPrivmsg(source, this->GetUID(), buf); + IRCD->SendPrivmsg(source, this->GetUID(), "{0}", buf); else - IRCD->SendNotice(source, this->GetUID(), buf); + IRCD->SendNotice(source, this->GetUID(), "{0}", buf); } } } |