diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-05 08:30:13 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-05 08:30:13 +0000 |
commit | 4dca000328cfde86f7a4065aef63c2be820b4e4c (patch) | |
tree | f4d82fcfe0954d34449bf25abb94a47558b0e491 /src | |
parent | 6e3a5ade352698267b8f77217608b0bf75cd95b2 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c index 313a942ef..bc66da4a2 100644 --- a/src/users.c +++ b/src/users.c @@ -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()); } } |