Changeset 4ffd757


Ignore:
Timestamp:
2010-08-14T10:21:44Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ac2717b
Parents:
2b02617
Message:

Don't send a /QUIT for every Twitter contact when going offline, and show
the twitter_$username /QUIT as a netsplit.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    r2b02617 r4ffd757  
    211211       
    212212        for( l = iu->irc->channels; l; l = l->next )
    213                 send_quit |= irc_channel_del_user( (irc_channel_t*) l->data, iu, IRC_CDU_SILENT, NULL );
     213        {
     214                irc_channel_t *ic = l->data;
     215                send_quit |= irc_channel_del_user( ic, iu, IRC_CDU_SILENT, NULL ) &&
     216                             ( ic->flags & IRC_CHANNEL_JOINED );
     217        }
    214218       
    215219        if( send_quit )
  • protocols/twitter/twitter.c

    r2b02617 r4ffd757  
    257257       
    258258        // Set the status to logged out.
    259         ic->flags = 0;
     259        ic->flags &= ~ OPT_LOGGED_IN;
    260260
    261261        // Remove the main_loop function from the function queue.
Note: See TracChangeset for help on using the changeset viewer.