aboutsummaryrefslogtreecommitdiff
path: root/modules/permissions
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-28 23:16:05 +0100
committerGravatar jesopo2019-06-28 23:16:05 +0100
commitae9d099a41b703ce875cf8746a94b6995bbaedfb (patch)
treec389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/permissions
parentmessage arg for HTTPWrongContentTypeException/HTTPParsingException (diff)
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/permissions')
-rw-r--r--modules/permissions/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/permissions/__init__.py b/modules/permissions/__init__.py
index 6003c256..f27033bf 100644
--- a/modules/permissions/__init__.py
+++ b/modules/permissions/__init__.py
@@ -9,9 +9,8 @@ REQUIRES_IDENTIFY = "You need to be identified to use that command"
REQUIRES_IDENTIFY_INTERNAL = ("You need to be identified to use that command "
"(/msg %s register | /msg %s identify)")
-@utils.export("serverset", {"setting": "identity-mechanism",
- "help": "Set the identity mechanism for this server",
- "example": "ircv3-account"})
+@utils.export("serverset", utils.Setting("identity-mechanism",
+ "Set the identity mechanism for this server", example="ircv3-account"))
class Module(ModuleManager.BaseModule):
@utils.hook("new.user")
def new_user(self, event):