diff options
author | Marius Halden <marius.h@lden.org> | 2016-08-01 13:04:29 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-08-01 13:04:29 +0200 |
commit | 14dc4bb2fec1422721dc038bd9a4412c8bb8e67f (patch) | |
tree | b1d7d17ce86f730b9e252e03533cf4017afa0dbb /protocols/twitter/twitter.c | |
parent | 94f613581320f660204bf967aafd74e6450b1389 (diff) |
Add commands to enable/disable rts for user
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 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) { |