diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-17 02:55:53 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-17 02:55:53 +0000 |
commit | 610dbf5c921698babff1dcb1d404e0fc46153254 (patch) | |
tree | 309477beeb502c50bb824687bbc89b615a562b4c /src/messages.c | |
parent | 0892ef136192bf9b6ad1e3c329f3f4b2b59cfa3e (diff) |
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
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 6 |
1 files 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; } } |