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:
+4
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user