Changeset 2f9027c
- Timestamp:
- 2013-06-16T17:33:58Z (12 years ago)
- Branches:
- master
- Children:
- 7e84168
- Parents:
- 1a2c1c0
- Location:
- protocols/twitter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
r1a2c1c0 r2f9027c 40 40 // Check if we are still logged in... 41 41 if (!g_slist_find(twitter_connections, ic)) 42 return 0;42 return FALSE; 43 43 44 44 // Do stuff.. 45 twitter_get_timeline(ic, -1); 46 47 // If we are still logged in run this function again after timeout. 48 return (ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN; 45 return twitter_get_timeline(ic, -1) && 46 ((ic->flags & OPT_LOGGED_IN) == OPT_LOGGED_IN); 49 47 } 50 48 -
protocols/twitter/twitter_lib.c
r1a2c1c0 r2f9027c 900 900 * Get the timeline with optionally mentions 901 901 */ 902 voidtwitter_get_timeline(struct im_connection *ic, gint64 next_cursor)902 gboolean twitter_get_timeline(struct im_connection *ic, gint64 next_cursor) 903 903 { 904 904 struct twitter_data *td = ic->proto_data; … … 909 909 imcb_error(ic, "Fetch timeout (%d)", td->flags); 910 910 imc_logout(ic, TRUE); 911 return FALSE; 911 912 } 912 913 } … … 919 920 twitter_get_mentions(ic, next_cursor); 920 921 } 922 923 return TRUE; 921 924 } 922 925 -
protocols/twitter/twitter_lib.h
r1a2c1c0 r2f9027c 82 82 83 83 gboolean twitter_open_stream(struct im_connection *ic); 84 voidtwitter_get_timeline(struct im_connection *ic, gint64 next_cursor);84 gboolean twitter_get_timeline(struct im_connection *ic, gint64 next_cursor); 85 85 void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor); 86 86 void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor);
Note: See TracChangeset
for help on using the changeset viewer.