aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_log
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-06 13:57:41 +0000
committerGravatar jesopo2019-03-06 13:57:41 +0000
commit380d91aba7e64fb6914831eff9d09f54b130eba0 (patch)
treec64e3821b81659666ab40f7d2a97fe8986ccd326 /modules/channel_log
parentDon't treat ACTION CTCP as a different event to normal PRIVMSGs (diff)
signature
Expose 'log' channel setting to !channelset
Diffstat (limited to 'modules/channel_log')
-rw-r--r--modules/channel_log/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/channel_log/__init__.py b/modules/channel_log/__init__.py
index 7f4d54be..80a5c427 100644
--- a/modules/channel_log/__init__.py
+++ b/modules/channel_log/__init__.py
@@ -4,6 +4,9 @@ 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})
class Module(ModuleManager.BaseModule):
def _log_file(self, server_name, channel_name):
return open(os.path.join(LOGS_DIRECTORY,