diff options
| author | 2019-06-28 23:25:24 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:26:42 +0100 | |
| commit | 756396d7584800324996def0145485b77ee7775b (patch) | |
| tree | 23c4c9c3fbb1577ef9bff11b5b0764498e7f671a /modules/permissions | |
| parent | add 'ircv3-stats' setting (diff) | |
Implement utils.OptionsSetting
Diffstat (limited to 'modules/permissions')
| -rw-r--r-- | modules/permissions/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/permissions/__init__.py b/modules/permissions/__init__.py index f27033bf..aae4d500 100644 --- a/modules/permissions/__init__.py +++ b/modules/permissions/__init__.py @@ -9,8 +9,9 @@ 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", utils.Setting("identity-mechanism", - "Set the identity mechanism for this server", example="ircv3-account")) +@utils.export("serverset", utils.OptionsSetting("identity-mechanism", + ["internal", "ircv3-account"], "Set the identity mechanism for this server", + example="ircv3-account")) class Module(ModuleManager.BaseModule): @utils.hook("new.user") def new_user(self, event): |
