mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
There can be CTCP notices as well.
This commit is contained in:
parent
bc8a6b94d9
commit
6393faf817
@ -224,7 +224,7 @@ class IrcMsg(object):
|
||||
|
||||
def isCtcp(msg):
|
||||
"""Returns whether or not msg is a CTCP message."""
|
||||
return msg.command == 'PRIVMSG' and \
|
||||
return msg.command in ('PRIVMSG', 'NOTICE') and \
|
||||
msg.args[1].startswith('\x01') and \
|
||||
msg.args[1].endswith('\x01')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user