From 23b7223faeadb519ab6b15442b4061506f281828 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 11 Oct 2018 11:20:53 +0100 Subject: Add !syncmodes in modules/auto_mode.py, fire internal.identified in modules/permissions.py and catch it in modules/auto_mode.py to give users modes when they identify using the internal identity mechanism --- modules/permissions.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/permissions.py') diff --git a/modules/permissions.py b/modules/permissions.py index 8a6c804b..5f56eb52 100644 --- a/modules/permissions.py +++ b/modules/permissions.py @@ -71,6 +71,8 @@ class Module(ModuleManager.BaseModule): self._identified(event["server"], event["user"], account) event["stdout"].write("Correct password, you have " "been identified as '%s'." % account) + self.events.on("internal.identified").call( + user=event["user"]) else: event["stderr"].write("Incorrect password for '%s'" % account) -- cgit v1.3.1-10-gc9f91