From 9cf63aca0ffdc0cf708c3d17ee3ae9f92fa7cbf8 Mon Sep 17 00:00:00 2001 From: Flexo Date: Thu, 31 Mar 2016 18:49:52 +0000 Subject: Add mute and unmute commands. --- protocols/twitter/twitter_lib.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'protocols/twitter/twitter_lib.c') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 288e0207..6b38bd7c 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -1652,6 +1652,19 @@ void twitter_friendships_create_destroy(struct im_connection *ic, char *who, int twitter_http_post, ic, 1, args, 2); } +/** + * Mute or unmute a user + */ +void twitter_mute_create_destroy(struct im_connection *ic, char *who, int create) +{ + char *args[2]; + + args[0] = "screen_name"; + args[1] = who; + twitter_http(ic, create ? TWITTER_MUTES_CREATE_URL : TWITTER_MUTES_DESTROY_URL, + twitter_http_post, ic, 1, args, 2); +} + void twitter_status_destroy(struct im_connection *ic, guint64 id) { char *url; -- cgit v1.2.3