aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter_lib.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-03-12 22:36:35 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2012-03-12 22:36:35 +0000
commitd18dee42088f0bef9d09dbc7903590d755d19a50 (patch)
treee8c5d9b956e476420c990de825c061b103a008cd /protocols/twitter/twitter_lib.c
parent57a656009b79afa0efc1fef360e6f7ca8a89ea01 (diff)
Merging report-spam patch for Twitter from Flexo. #923
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r--protocols/twitter/twitter_lib.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index 38964e66..bfcebd2b 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -1061,3 +1061,17 @@ void twitter_status_retweet(struct im_connection *ic, guint64 id)
twitter_http(ic, url, twitter_http_post, ic, 1, NULL, 0);
g_free(url);
}
+
+/**
+ * Report a user for sending spam.
+ */
+void twitter_report_spam(struct im_connection *ic, char *screen_name)
+{
+ char *args[2] = {
+ "screen_name",
+ NULL,
+ };
+ args[1] = screen_name;
+ twitter_http(ic, TWITTER_REPORT_SPAM_URL, twitter_http_post,
+ ic, 1, args, 2);
+}