mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:56:38 +02:00
Really fix bug 985, had to fix security hole in User::SendMessage() as well.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1917 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+2
-2
@@ -297,11 +297,11 @@ void User::SendMessage(const char *source, const std::string &msg)
|
||||
if (UsePrivmsg &&
|
||||
((!this->na && NSDefFlags & NI_MSG) || (this->na && this->na->nc->flags & NI_MSG)))
|
||||
{
|
||||
ircdproto->SendPrivmsg(findbot(source), this->nick, msg.c_str());
|
||||
ircdproto->SendPrivmsg(findbot(source), this->nick, "%s", msg.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
ircdproto->SendNotice(findbot(source), this->nick, msg.c_str());
|
||||
ircdproto->SendNotice(findbot(source), this->nick, "%s", msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user