Skip to content

Commit

Permalink
Add /query (alias of /msg)
Browse files Browse the repository at this point in the history
  • Loading branch information
haavard committed Feb 19, 2017
1 parent 17ae6d8 commit 9c1d362
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/twc-commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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> [<message>]",
"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);

Expand Down

0 comments on commit 9c1d362

Please sign in to comment.