hook in to private messages for checking hostmask perms

This commit is contained in:
jesopo 2019-11-30 19:13:03 +00:00
parent aad3da9f8d
commit dd65cb5b05

View file

@ -93,6 +93,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.nick")
@utils.hook("received.who")
@utils.hook("received.whox")
@utils.hook("received.message.private")
def chghost(self, event):
if not self._is_identified(event["user"]):
self._set_hostmask(event["server"], event["user"])