diff options
| author | 2016-05-06 13:36:01 +0100 | |
|---|---|---|
| committer | 2016-05-06 13:36:01 +0100 | |
| commit | 5338859e31068d83cf3c83dfc860c646c1ed42e8 (patch) | |
| tree | 4a171d106795ef74f89aa2cf597bcb3904110ab3 /modules/sed.py | |
| parent | added wikipedia.py. (diff) | |
added a function to Utils to get the "closest" setting, with channel/user settings being more important than server-wide settings.
Diffstat (limited to 'modules/sed.py')
| -rw-r--r-- | modules/sed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sed.py b/modules/sed.py index 01bbdf4c..460dfd81 100644 --- a/modules/sed.py +++ b/modules/sed.py @@ -18,7 +18,7 @@ class Module(object): validate=Utils.bool_or_none) def channel_message(self, event): - if event["action"] or not event["channel"].get_setting("sed", True): + if event["action"] or not Utils.get_closest_setting(event, "sed", True): return sed_split = re.split(REGEX_SPLIT, event["message"], 3) if event["message"].startswith("s/") and len(sed_split) > 2: |
