From 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 7 Oct 2017 18:37:51 -0400 Subject: SendMessage: don't interpret message as a format string --- src/users.cpp | 8 ++++---- 1 file 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); } } } -- cgit