From 14dc4bb2fec1422721dc038bd9a4412c8bb8e67f Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Mon, 1 Aug 2016 13:04:29 +0200 Subject: Add commands to enable/disable rts for user --- 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 0d635b21..f374c33d 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -1096,6 +1096,12 @@ static void twitter_handle_command(struct im_connection *ic, char *message) twitter_direct_messages_new(ic, cmd[1], cmd[2]); } goto eof; + } else if (g_strcasecmp(cmd[0], "rtoff") == 0 && cmd[1]) { + twitter_retweet_enable_disable(ic, cmd[1], 0); + goto eof; + } else if (g_strcasecmp(cmd[0], "rton") == 0 && cmd[1]) { + twitter_retweet_enable_disable(ic, cmd[1], 1); + goto eof; } if (allow_post) { -- cgit v1.2.3