diff options
| author | Flexo <nick@nivan.net> | 2016-03-31 18:49:52 +0000 | 
|---|---|---|
| committer | Flexo <nick@nivan.net> | 2016-03-31 18:49:52 +0000 | 
| commit | 9cf63aca0ffdc0cf708c3d17ee3ae9f92fa7cbf8 (patch) | |
| tree | e153efbac9f45c6f5abd7223cc43919a638110a9 /protocols/twitter/twitter_lib.c | |
| parent | fb62f132a55896e235fd4956987548bdcd0be519 (diff) | |
Add mute and unmute commands.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
| -rw-r--r-- | protocols/twitter/twitter_lib.c | 13 | 
1 files changed, 13 insertions, 0 deletions
| 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; | 
