From e00202fccf079ac25e2070e5d963c566b506cbb7 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 19 Apr 2011 22:37:50 -0400 Subject: [PATCH] bugfix in afc_status --- irc/commands/afc_status.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/irc/commands/afc_status.py b/irc/commands/afc_status.py index d22d470..398a348 100644 --- a/irc/commands/afc_status.py +++ b/irc/commands/afc_status.py @@ -21,8 +21,11 @@ class AFCStatus(BaseCommand): data.command == "count" or data.command == "num" or data.command == "number" or data.command == "afc_status"): return True - if data.line[1] == "JOIN" and data.chan in AFC_CHANS: - return True + try: + if data.line[1] == "JOIN" and data.chan in AFC_CHANS: + return True + except IndexError: + pass return False def process(self, data):