Changeset 0bd948e for irc_im.c


Ignore:
Timestamp:
2010-07-03T21:16:41Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c8eeadd
Parents:
917a83e
Message:

Show a user going offline as a QUIT, not as one or more PARTs, like in the
old-style BitlBee. This so that the IRC client will show the notification
in query windows as well. Make it a setting though, for bug #539.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r917a83e r0bd948e  
    108108                                irc_send_num( irc, 601, "%s %s %s %d :%s", iu->nick, iu->user,
    109109                                              iu->host, (int) time( NULL ), "logged offline" );
     110                       
     111                        /* Send a QUIT since those will also show up in any
     112                           query windows the user may have, plus it's only
     113                           one QUIT instead of possibly many (in case of
     114                           multiple control chans). If there's a channel that
     115                           shows offline people, a JOIN will follow. */
     116                        if( set_getbool( &bee->set, "offline_user_quits" ) )
     117                                irc_user_quit( iu, "Leaving..." );
    110118                }
    111119        }
Note: See TracChangeset for help on using the changeset viewer.