From 6393faf817d1dc6b6425ce7cc234568c1ffe5537 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 17 Sep 2004 03:32:15 +0000 Subject: [PATCH] There can be CTCP notices as well. --- src/ircmsgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 387e24f66..b395e13d9 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -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')