diff options
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index a789600..18ff60b 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -122,6 +122,8 @@ def slack_buffer_required(f): @wraps(f) def wrapper(data, current_buffer, *args, **kwargs): if current_buffer not in EVENTROUTER.weechat_controller.buffers: + command_name = f.__name__.replace('command_', '', 1) + w.prnt('', 'slack: command "{}" must be executed on slack buffer'.format(command_name)) return w.WEECHAT_RC_ERROR return f(data, current_buffer, *args, **kwargs) return wrapper |