diff options
author | Aaron van Geffen <aaron@aaronweb.net> | 2016-05-26 06:08:05 +0200 |
---|---|---|
committer | dx <dx@dxzone.com.ar> | 2016-05-26 01:08:05 -0300 |
commit | 59a7dc58dcf39b7eaed2015423f8a4fc2da3c7fd (patch) | |
tree | 340d833fb3f56cdadfef3f08e6be1e9167525723 | |
parent | 35712b75b589d0f40386891fa6e2cf1c4d97cf6e (diff) |
Twitter: add "like" as an alias for favourite.
This will allow a user to type "like" in Twitter channels,
reflecting recent changes to Twitter itself. Note that the
API hasn't changed.
-rw-r--r-- | protocols/twitter/twitter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 4fe509bb..b2039171 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -950,7 +950,8 @@ static void twitter_handle_command(struct im_connection *ic, char *message) goto eof; } else if ((g_strcasecmp(cmd[0], "favourite") == 0 || g_strcasecmp(cmd[0], "favorite") == 0 || - g_strcasecmp(cmd[0], "fav") == 0) && cmd[1]) { + g_strcasecmp(cmd[0], "fav") == 0 || + g_strcasecmp(cmd[0], "like") == 0) && cmd[1]) { if ((id = twitter_message_id_from_command_arg(ic, cmd[1], NULL))) { twitter_favourite_tweet(ic, id); } else { |