Fix a crash in modules/line_handler.py; QUIT can have an empty reason!

This commit is contained in:
jesopo 2018-11-05 10:03:31 +00:00
parent 66ee3ce5f1
commit 5963580cb8

View file

@ -234,7 +234,7 @@ class Module(ModuleManager.BaseModule):
# a user has disconnected!
@utils.hook("raw.quit")
def quit(self, event):
reason = event["args"][0]
reason = event["args"].get(0)
if not event["server"].is_own_nickname(event["prefix"].nickname):
user = event["server"].get_user(event["prefix"].nickname)