mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 05:03:07 +01:00
callbacks: Don't raise AssertionError when addressd() is called with a NOTICE
Some plugins (like LinkRelay) share code between NOTICE and PRIVMSG and they might call it unconditionally.
This commit is contained in:
parent
de277edb42
commit
ebaa346619
@ -80,6 +80,8 @@ def _addressed(irc, msg, prefixChars=None, nicks=None,
|
||||
payload = payload[len(prefixString):].lstrip()
|
||||
return payload
|
||||
|
||||
if msg.command == 'NOTICE':
|
||||
return ''
|
||||
assert msg.command in ('PRIVMSG', 'TAGMSG'), msg.command
|
||||
target = msg.channel or msg.args[0]
|
||||
if not payload:
|
||||
|
Loading…
Reference in New Issue
Block a user