From 8f82ddd3f429019c32456b7cfb69fd5a264b7e25 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Sat, 21 Feb 2015 12:45:53 -0800 Subject: don't print username in /me and do italics like official clients --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index 9cf3e2f..f61caf7 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -701,7 +701,7 @@ def me_command_cb(data, current_buffer, args): if channels.find(current_buffer): channel = channels.find(current_buffer) nick = channel.server.nick - message = "{} {}".format(nick, args) + message = "_{}_".format(args) message = message.encode('utf-8') buffer_input_cb("", current_buffer, message) return w.WEECHAT_RC_OK @@ -1593,8 +1593,8 @@ if __name__ == "__main__": '|'.join(cmds.keys()), # Function name 'slack_command_cb', '') - w.hook_command('me', '', 'stuff', 'stuff2', '', 'me_command_cb', '') # w.hook_command('me', 'me_command_cb', '') + w.hook_command('me', '', 'stuff', 'stuff2', '', 'me_command_cb', '') w.hook_command_run('/query', 'join_command_cb', '') w.hook_command_run('/join', 'join_command_cb', '') w.hook_command_run('/part', 'part_command_cb', '') -- cgit