diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/channel_log/__init__.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
| signature | ||
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/channel_log/__init__.py')
| -rw-r--r-- | modules/channel_log/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/channel_log/__init__.py b/modules/channel_log/__init__.py index 583957a0..48fb93f4 100644 --- a/modules/channel_log/__init__.py +++ b/modules/channel_log/__init__.py @@ -7,9 +7,8 @@ from src import ModuleManager, utils ROOT_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) LOGS_DIRECTORY = os.path.join(ROOT_DIRECTORY, "logs") -@utils.export("channelset", {"setting": "log", - "help": "Enable/disable channel logging", "validate": utils.bool_or_none, - "example": "on"}) +@utils.export("channelset", utils.BoolSetting("log", + "Enable/disable channel logging")) class Module(ModuleManager.BaseModule): def _log_file(self, server_name, channel_name): return open(os.path.join(LOGS_DIRECTORY, |
