There can be CTCP notices as well.

This commit is contained in:
Jeremy Fincher 2004-09-17 03:32:15 +00:00
parent bc8a6b94d9
commit 6393faf817

View File

@ -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')