Fix a crash in modules/line_handler.py; QUIT can have an empty reason!
This commit is contained in:
parent
66ee3ce5f1
commit
5963580cb8
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
# a user has disconnected!
|
# a user has disconnected!
|
||||||
@utils.hook("raw.quit")
|
@utils.hook("raw.quit")
|
||||||
def quit(self, event):
|
def quit(self, event):
|
||||||
reason = event["args"][0]
|
reason = event["args"].get(0)
|
||||||
|
|
||||||
if not event["server"].is_own_nickname(event["prefix"].nickname):
|
if not event["server"].is_own_nickname(event["prefix"].nickname):
|
||||||
user = event["server"].get_user(event["prefix"].nickname)
|
user = event["server"].get_user(event["prefix"].nickname)
|
||||||
|
|
Loading…
Reference in a new issue