From 8f045f626cf9fd92ec94c1cd6c7d2a8aa2544297 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Tue, 17 Nov 2009 20:29:00 -0700 Subject: [PATCH] make logging slightly less spammy --- plugins/log.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/log.py b/plugins/log.py index aa1e68b..4fe5c9b 100644 --- a/plugins/log.py +++ b/plugins/log.py @@ -22,7 +22,9 @@ formats = {'PRIVMSG': '<%(nick)s> %(msg)s', 'MODE': '-!- mode/%(chan)s [%(param_tail)s] by %(nick)s', 'KICK': '-!- %(param1)s was kicked from %(chan)s by %(nick)s [%(msg)s]', 'TOPIC': '-!- %(nick)s changed the topic of %(chan)s to: %(msg)s', - 'QUIT': '-!- %(nick)s has quit [%(msg)s]' + 'QUIT': '-!- %(nick)s has quit [%(msg)s]', + 'PING': '', + 'NOTICE': '' } ctcp_formats = {'ACTION': '* %(nick)s %(ctcpmsg)s'} @@ -96,6 +98,9 @@ def log(bot, input): beau = beautify(input) + if beau == '': # don't log this + return + print '%s %s %s' % (timestamp, input.chan, beau) if input.chan: