make logging slightly less spammy

This commit is contained in:
Ryan Hitchman 2009-11-17 20:29:00 -07:00
parent efa0c410a3
commit 8f045f626c
1 changed files with 6 additions and 1 deletions

View File

@ -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: