aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-04-16 14:21:33 -0300
committerdequis <dx@dxzone.com.ar>2016-04-16 14:21:33 -0300
commit991c75fbf4c4bc0ab2ae6f8b983a092080630b14 (patch)
tree7932b640301c13b3c0798562740e971c3eb7b80f /protocols/twitter/twitter.c
parentc9603a38774fb118d4aaa96e170674412ed7328a (diff)
parent166a571321826a68626eaf10a59901253237f09e (diff)
Merge remote-tracking branch 'bitlbee/pr/70'
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 7c96e9c3..e543f86e 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -344,6 +344,8 @@ void twitter_login_finish(struct im_connection *ic)
!(td->flags & TWITTER_HAVE_FRIENDS)) {
imcb_log(ic, "Getting contact list");
twitter_get_friends_ids(ic, -1);
+ twitter_get_mutes_ids(ic, -1);
+ twitter_get_noretweets_ids(ic, -1);
} else {
twitter_main_loop_start(ic);
}
@@ -955,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;