1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:43:12 +02:00

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
This commit is contained in:
cyberbotx
2009-03-17 02:55:53 +00:00
parent 0892ef1361
commit 610dbf5c92
+4 -2
View File
@@ -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;
}
}