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):