diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-14 11:21:44 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-14 11:21:44 +0100 |
commit | 4ffd757724a657d2dc5c536473523a86f2331d9e (patch) | |
tree | 9135edf5c8b6c5fff26ab2bcc39d01d843e5baa6 /irc_user.c | |
parent | 2b02617289671ececbd98a209cb44aca81c22a65 (diff) |
Don't send a /QUIT for every Twitter contact when going offline, and show
the twitter_$username /QUIT as a netsplit.
Diffstat (limited to 'irc_user.c')
-rw-r--r-- | irc_user.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -210,7 +210,11 @@ void irc_user_quit( irc_user_t *iu, const char *msg ) return; for( l = iu->irc->channels; l; l = l->next ) - send_quit |= irc_channel_del_user( (irc_channel_t*) l->data, iu, IRC_CDU_SILENT, NULL ); + { + irc_channel_t *ic = l->data; + send_quit |= irc_channel_del_user( ic, iu, IRC_CDU_SILENT, NULL ) && + ( ic->flags & IRC_CHANNEL_JOINED ); + } if( send_quit ) irc_send_quit( iu, msg ); |