Browse Source

Merge #885: Log whole IRC message on "bad command"

f2362dce9a Log whole IRC message on "bad command" (Kristaps Kaupe)

Pull request description:

  Log messages like "bad command 1" are confusing and doesn't help in debugging. I see no reason to not log whole IRC message.

Top commit has no ACKs.

Tree-SHA512: b9d5a490b2559b43dc9552434062f38108b2be3d9aae18cc49beaf4060f9342d64006fa6e972413e8031b6c3c754ada3d1f653502411408b564c42c3f6ca02d1
master
Kristaps Kaupe 5 years ago
parent
commit
5ba27e0e54
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      jmdaemon/jmdaemon/irc.py

2
jmdaemon/jmdaemon/irc.py

@ -291,7 +291,7 @@ class txIRC_Client(irc.IRCClient, object):
if sent_to == self.wrapper.nick:
if nick not in self.built_privmsg:
if message[0] != COMMAND_PREFIX:
wlog('bad command ', message[0])
wlog('bad command ', message)
return
# new message starting

Loading…
Cancel
Save