diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-09 02:11:10 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-09 02:11:10 +0100 | 
| commit | 16592d8422bbd7acdf39d29525e580fb82d47c36 (patch) | |
| tree | 2b67de62777a491decf58c0965c39a00f299d594 /protocols/twitter | |
| parent | cca06921729ecd1ab4beaecfef001a218e5d0010 (diff) | |
If the user leaves the Twitter channel, allow that. Recreate it when new
tweets come in.
Diffstat (limited to 'protocols/twitter')
| -rw-r--r-- | protocols/twitter/twitter.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index dcbcfdfb..8502cd6f 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -155,6 +155,15 @@ static void twitter_chat_invite( struct groupchat *c, char *who, char *message )  static void twitter_chat_leave( struct groupchat *c )  { +	struct twitter_data *td = c->ic->proto_data; +	 +	if( c != td->home_timeline_gc ) +		return; /* WTF? */ +	 +	/* If the user leaves the channel: Fine. Rejoin him/her once new +	   tweets come in. */ +	imcb_chat_free(td->home_timeline_gc); +	td->home_timeline_gc = NULL;  }  static struct groupchat *twitter_chat_with( struct im_connection *ic, char *who ) | 
