aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-09 02:11:10 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-09 02:11:10 +0100
commit16592d8422bbd7acdf39d29525e580fb82d47c36 (patch)
tree2b67de62777a491decf58c0965c39a00f299d594
parentcca06921729ecd1ab4beaecfef001a218e5d0010 (diff)
If the user leaves the Twitter channel, allow that. Recreate it when new
tweets come in.
-rw-r--r--protocols/twitter/twitter.c9
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 )