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.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/twitter/twitter.c') diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 94c88b71..e543f86e 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -957,6 +957,12 @@ static void twitter_handle_command(struct im_connection *ic, char *message) } else if (g_strcasecmp(cmd[0], "unfollow") == 0 && cmd[1]) { twitter_remove_buddy(ic, cmd[1], NULL); goto eof; + } else if (g_strcasecmp(cmd[0], "mute") == 0 && cmd[1]) { + twitter_mute_create_destroy(ic, cmd[1], 1); + goto eof; + } else if (g_strcasecmp(cmd[0], "unmute") == 0 && cmd[1]) { + twitter_mute_create_destroy(ic, cmd[1], 0); + goto eof; } else if ((g_strcasecmp(cmd[0], "report") == 0 || g_strcasecmp(cmd[0], "spam") == 0) && cmd[1]) { char *screen_name; -- cgit v1.2.3