diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-06-04 00:02:14 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-06-04 00:02:14 +0100 |
commit | 7de784c55f796f80523eac5fa25d6728048469b0 (patch) | |
tree | ac1b435627537b2450922c746526b90e8d7a9f72 /protocols/twitter/twitter.c | |
parent | 25b80e9cc7f74ec3df47c2ed25933065832bd7f4 (diff) |
Fixed compiler warning in twitter.c report-spam code.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 524d8787..f7e1ec76 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -533,6 +533,7 @@ static void twitter_handle_command(struct im_connection *ic, char *message) g_strcasecmp(cmd[0], "spam") == 0) && cmd[1]) { char * screen_name; guint64 id; + screen_name = cmd[1]; /* Report nominally works on users but look up the user who posted the given ID if the user wants to do it that way */ if (g_str_has_prefix(cmd[1], "#") && @@ -542,8 +543,6 @@ static void twitter_handle_command(struct im_connection *ic, char *message) screen_name = td->log[id].bu->handle; } } - } else { - screen_name = cmd[1]; } twitter_report_spam(ic, screen_name); g_free(cmds); |