From 59a7dc58dcf39b7eaed2015423f8a4fc2da3c7fd Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 26 May 2016 06:08:05 +0200 Subject: 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. --- protocols/twitter/twitter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/twitter/twitter.c') 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 { -- cgit v1.2.3