From 756396d7584800324996def0145485b77ee7775b Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 28 Jun 2019 23:25:24 +0100 Subject: Implement utils.OptionsSetting --- modules/channel_op.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/channel_op.py') diff --git a/modules/channel_op.py b/modules/channel_op.py index 11d5a0d5..749e7764 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -19,8 +19,9 @@ class InvalidTimeoutException(Exception): @utils.export("channelset", utils.Setting("ban-format", "Set ban format ($n = nick, $u = username, $h = hostname)", example="*!$u@$h")) -@utils.export("serverset", utils.Setting("mute-method", - "Set this server's method of muting users", example="qmode")) +@utils.export("serverset", utils.OptionsSetting("mute-method", + ["qmode", "insp", "unreal"], "Set this server's method of muting users", + example="qmode")) class Module(ModuleManager.BaseModule): _name = "ChanOp" -- cgit v1.3.1-10-gc9f91