aboutsummaryrefslogtreecommitdiff
path: root/modules/permissions.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-11 11:20:53 +0100
committerGravatar jesopo2018-10-11 11:20:53 +0100
commit23b7223faeadb519ab6b15442b4061506f281828 (patch)
treebabb55f7bef8b5945d0318098b5aec46778ac5de /modules/permissions.py
parentRemove one-too-many indent in modules/coins.py (diff)
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
Diffstat (limited to 'modules/permissions.py')
-rw-r--r--modules/permissions.py2
1 files changed, 2 insertions, 0 deletions
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)