aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-03 17:01:10 +0100
committerGravatar jesopo2018-10-03 17:01:10 +0100
commit02e76444d17f02e152411d6ceafd43e0e2e68cae (patch)
tree2bfdc5e6fac3a2bd6bc9a2fa47336257d04b448f /modules/channel_op.py
parentCorrectly get BitBot's own modes in modules/print_activity.py (diff)
signature
Add 'remove_empty' kwarg for commands, to strip out empty space
Diffstat (limited to 'modules/channel_op.py')
-rw-r--r--modules/channel_op.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index b2c1e3af..9f9984ee 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -202,7 +202,8 @@ class Module(ModuleManager.BaseModule):
"args_split"][0]
event["target"].send_mode("-v", target)
- @utils.hook("received.command.topic", min_args=1, channel_only=True)
+ @utils.hook("received.command.topic", min_args=1, channel_only=True,
+ remove_empty=False)
def topic(self, event):
"""
:help: Set the topic in the current channel
@@ -210,7 +211,8 @@ class Module(ModuleManager.BaseModule):
:require_mode: o
"""
event["target"].send_topic(event["args"])
- @utils.hook("received.command.tappend", min_args=1, channel_only=True)
+ @utils.hook("received.command.tappend", min_args=1, channel_only=True,
+ remove_empty=False)
def tappend(self, event):
"""
:help: Append to the topic in the current channel