make logging slightly less spammy
This commit is contained in:
parent
efa0c410a3
commit
8f045f626c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue