aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/permissions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/permissions.py b/modules/permissions.py
index 873e346d..e24f6ea0 100644
--- a/modules/permissions.py
+++ b/modules/permissions.py
@@ -171,10 +171,14 @@ class Module(ModuleManager.BaseModule):
permission in permissions or "*" in permissions)
if not identified_account or not has_permission:
return "You do not have permission to do that"
+ else:
+ return utils.consts.PERMISSION_FORCE_SUCCESS
elif authenticated:
if not identified_account:
return REQUIRES_IDENTIFY % (event["server"].nickname,
event["server"].nickname)
+ else:
+ return utils.consts.PERMISSION_FORCE_SUCCESS
@utils.hook("received.command.mypermissions", authenticated=True)
def my_permissions(self, event):