mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
callbacks: Print unexpected commands
This commit is contained in:
parent
ca624d7ae6
commit
62db3a92fc
@ -80,7 +80,7 @@ def _addressed(irc, msg, prefixChars=None, nicks=None,
|
||||
payload = payload[len(prefixString):].lstrip()
|
||||
return payload
|
||||
|
||||
assert msg.command in ('PRIVMSG', 'TAGMSG')
|
||||
assert msg.command in ('PRIVMSG', 'TAGMSG'), msg.command
|
||||
target = msg.channel or msg.args[0]
|
||||
if not payload:
|
||||
payload = msg.args[1]
|
||||
|
Loading…
Reference in New Issue
Block a user