aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-13 19:36:16 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-13 19:36:16 +0200
commit3bd4a9327bb2c7c662e6d385b3bf6903ca8ca09a (patch)
tree1ccea93916ba0d6c002bf715e6f9288dcd1dfd6b /protocols/twitter/twitter.c
parent3e69802454295ffbfbbbe9bca4fcd226b5b63b28 (diff)
Suppress HTTP error messages unless we get five or more in a row.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 5027eb74..727eff91 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -35,9 +35,7 @@ gboolean twitter_main_loop(gpointer data, gint fd, b_input_condition cond)
struct im_connection *ic = data;
// Check if we are still logged in...
- // We are logged in if the flag says so and the connection is still in the connections list.
- if (!g_slist_find( twitter_connections, ic ) ||
- (ic->flags & OPT_LOGGED_IN) != OPT_LOGGED_IN)
+ if (!g_slist_find( twitter_connections, ic ))
return 0;
// If the user uses multiple private message windows we need to get the
@@ -78,7 +76,6 @@ static void twitter_login( account_t *acc )
ic->proto_data = td;
imcb_log( ic, "Connecting to Twitter" );
- imcb_connected(ic);
// Run this once. After this queue the main loop function.
twitter_main_loop(ic, -1, 0);