Changeset 59a7dc5


Ignore:
Timestamp:
2016-05-26T04:08:05Z (8 years ago)
Author:
dx <dx@…>
Branches:
master
Children:
5ac5658
Parents:
35712b7
git-author:
Aaron van Geffen <aaron@…> (26-05-16 04:08:05)
git-committer:
dx <dx@…> (26-05-16 04:08:05)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r35712b7 r59a7dc5  
    951951        } else if ((g_strcasecmp(cmd[0], "favourite") == 0 ||
    952952                    g_strcasecmp(cmd[0], "favorite") == 0 ||
    953                     g_strcasecmp(cmd[0], "fav") == 0) && cmd[1]) {
     953                    g_strcasecmp(cmd[0], "fav") == 0 ||
     954                    g_strcasecmp(cmd[0], "like") == 0) && cmd[1]) {
    954955                if ((id = twitter_message_id_from_command_arg(ic, cmd[1], NULL))) {
    955956                        twitter_favourite_tweet(ic, id);
Note: See TracChangeset for help on using the changeset viewer.