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.c | |
parent | fb62f132a55896e235fd4956987548bdcd0be519 (diff) |
Add mute and unmute commands.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |