From 610dbf5c921698babff1dcb1d404e0fc46153254 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 17 Mar 2009 02:55:53 +0000 Subject: [PATCH] Fix bug #1054 for 1.9.x, patch from Adam, Anope no longer shows the entire message that was ignored, now it only shows the command that was used. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2173 5417fbe8-f217-4b02-8779-1006273d7864 --- src/messages.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/messages.c b/src/messages.c index 4e3edf3bd..6aba12d1b 100644 --- a/src/messages.c +++ b/src/messages.c @@ -105,7 +105,7 @@ int m_motd(const char *source) int m_privmsg(const char *source, const char *receiver, const char *msg) { - char *s; + char *s, *target; time_t starttime, stoptime; /* When processing started and finished */ BotInfo *bi; @@ -140,7 +140,9 @@ int m_privmsg(const char *source, const char *receiver, const 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; } }