aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index f558817..bfbc0f2 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -669,10 +669,12 @@ def slack_command_cb(data, current_buffer, args):
function_name, args = a[0], " ".join(a[1:])
else:
function_name, args = a[0], None
-# try:
- cmds[function_name](current_buffer, args)
-# except KeyError:
-# w.prnt("", "Command not found or exception: "+function_name)
+
+ try:
+ command = cmds[function_name](current_buffer, args)
+ except KeyError:
+ w.prnt("", "Command not found: " + function_name)
+
return w.WEECHAT_RC_OK