aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2014-09-27 11:54:35 -0300
committerdequis <dx@dxzone.com.ar>2014-09-27 11:54:35 -0300
commitc20353336e6ce3344a41ed5abb3f783ea31ea4e4 (patch)
tree78c2c631d7f655564a356d4c5bf70a597ca1c9b5 /protocols/twitter/twitter.c
parentf75b3a7d497965e4e8a6527a5a536f1784836465 (diff)
twitter: Add support for The United States of America
Land of the Free, Home of the Brave
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 7c4db3a8..2a6ae88f 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -616,7 +616,9 @@ static void twitter_handle_command(struct im_connection *ic, char *message)
twitter_log(ic, "Could not undo last action");
goto eof;
- } else if (g_strcasecmp(cmd[0], "favourite") == 0 && cmd[1]) {
+ } else if ((g_strcasecmp(cmd[0], "favourite") == 0 ||
+ g_strcasecmp(cmd[0], "favorite") == 0 ||
+ g_strcasecmp(cmd[0], "fav") == 0) && cmd[1]) {
if ((id = twitter_message_id_from_command_arg(ic, cmd[1], NULL))) {
twitter_favourite_tweet(ic, id);
} else {