From 7cc23d874f8df0240410f006b121562b9ec30ff1 Mon Sep 17 00:00:00 2001 From: sjaz Date: Wed, 18 Mar 2009 21:21:00 +0000 Subject: #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 --- src/messages.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } } -- cgit