Channels are 'target' in command events

This commit is contained in:
jesopo 2018-12-15 22:57:38 +00:00
parent 179cb40163
commit 00ac4d208a

View file

@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule):
phrase = event["args"] or event["target"].buffer.get()
if phrase:
safe_setting = event["channel"].get_setting("google-safesearch",
safe_setting = event["target"].get_setting("google-safesearch",
True)
safe = "active" if safe_setting else "off"