Channels are 'target' in command events
This commit is contained in:
parent
179cb40163
commit
00ac4d208a
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
phrase = event["args"] or event["target"].buffer.get()
|
phrase = event["args"] or event["target"].buffer.get()
|
||||||
if phrase:
|
if phrase:
|
||||||
safe_setting = event["channel"].get_setting("google-safesearch",
|
safe_setting = event["target"].get_setting("google-safesearch",
|
||||||
True)
|
True)
|
||||||
safe = "active" if safe_setting else "off"
|
safe = "active" if safe_setting else "off"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue