diff --git a/irc/client.py b/irc/client.py index 8e16700..f99fce9 100644 --- a/irc/client.py +++ b/irc/client.py @@ -411,7 +411,10 @@ def _handle_message(self, arguments, command, source, tags): def _handle_other(self, arguments, command, source, tags): target = None if command == "quit": - arguments = [arguments[0]] + if len(arguments) > 0: + arguments = [arguments[0]] + else: + arguments = [""] elif command == "ping": target = arguments[0] else: