summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-18 21:21:00 +0000
committersjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-18 21:21:00 +0000
commit7cc23d874f8df0240410f006b121562b9ec30ff1 (patch)
tree8762969c0b83530dedfa6fdccc17961bbf8af194
parent324b4ee85eddb634cab6619cbb70abd99dfceff8 (diff)
#1054 Backported fix from 1.9 to hide password in log/logchan whilst user is ignored.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2175 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/messages.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c
index cbd29645e..57f927163 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -111,7 +111,7 @@ int m_motd(char *source)
int m_privmsg(char *source, char *receiver, char *msg)
{
- char *s;
+ char *s, *target;
time_t starttime, stoptime; /* When processing started and finished */
BotInfo *bi;
@@ -143,7 +143,9 @@ int m_privmsg(char *source, char *receiver, char *msg)
if (allow_ignore && !is_oper(u)) {
IgnoreData *ign = get_ignore(source);
if (ign) {
- alog("Ignored message from %s: \"%s\"", source, inbuf);
+ target = myStrGetToken(msg, ' ', 0);
+ alog("Ignored message from %s to %s using command %s", source, receiver, target);
+ free(target);
return MOD_CONT;
}
}