Treat a QUIT from hostmask :* as referring to our connection (line_handler.py)

This commit is contained in:
jesopo 2019-02-10 00:29:22 +00:00
parent ffdf49efc9
commit 71eac9d3c0

View file

@ -272,7 +272,8 @@ class Module(ModuleManager.BaseModule):
def quit(self, event):
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) and
not event["prefix"].hostmask == "*"):
user = event["server"].get_user(event["prefix"].nickname)
event["server"].remove_user(user)
self._event(event, "quit", reason=reason, user=user,