don't enable !rainbow by default
This commit is contained in:
parent
369160d46f
commit
1b3aa90df5
1 changed files with 6 additions and 0 deletions
|
@ -16,11 +16,17 @@ COLORS = [
|
|||
utils.consts.PURPLE
|
||||
]
|
||||
|
||||
@utils.export("channelset", utils.BoolSetting("rainbow",
|
||||
"Enable/disable allowing rainbowification of strings"))
|
||||
class Module(ModuleManager.BaseModule):
|
||||
@utils.hook("received.command.rainbow")
|
||||
@utils.kwarg("help", "Rainbowify a given string or the last message")
|
||||
@utils.kwarg("usage", "[string]")
|
||||
def rainbow(self, event):
|
||||
if event["is_channel"] and not event["target"].get_setting(
|
||||
"rainbow", False):
|
||||
return
|
||||
|
||||
args = event["args"]
|
||||
if not args:
|
||||
args = event["target"].buffer.get()
|
||||
|
|
Loading…
Reference in a new issue