From 9c1d362497fafb5cb9489107a9f4c459bad97419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Sat, 18 Feb 2017 20:38:06 -0800 Subject: [PATCH] Add /query (alias of /msg) https://github.com/haavard/tox-weechat/issues/12 --- src/twc-commands.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/twc-commands.c b/src/twc-commands.c index 867e558..40cfa47 100644 --- a/src/twc-commands.c +++ b/src/twc-commands.c @@ -1246,6 +1246,13 @@ twc_commands_init() "%(tox_friend_name)|%(tox_friend_tox_id)", twc_cmd_msg, NULL, NULL); + weechat_hook_command("query", "send a message to a Tox friend", + "|| []", + "number, name, Tox ID: friend to message\n" + "message: message to send", + "%(tox_friend_name)|%(tox_friend_tox_id)", twc_cmd_msg, + NULL, NULL); + weechat_hook_command("myid", "get your Tox ID to give to friends", "", "", NULL, twc_cmd_myid, NULL, NULL);