Ignore:
Timestamp:
2016-03-31T18:49:52Z (9 years ago)
Author:
Flexo <nick@…>
Branches:
master
Children:
0d581bd
Parents:
fb62f132
Message:

Add mute and unmute commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    rfb62f132 r9cf63ac  
    16531653}
    16541654
     1655/**
     1656 * Mute or unmute a user
     1657 */
     1658void twitter_mute_create_destroy(struct im_connection *ic, char *who, int create)
     1659{
     1660        char *args[2];
     1661
     1662        args[0] = "screen_name";
     1663        args[1] = who;
     1664        twitter_http(ic, create ? TWITTER_MUTES_CREATE_URL : TWITTER_MUTES_DESTROY_URL,
     1665                     twitter_http_post, ic, 1, args, 2);
     1666}
     1667
    16551668void twitter_status_destroy(struct im_connection *ic, guint64 id)
    16561669{
Note: See TracChangeset for help on using the changeset viewer.