aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-03 22:16:41 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-03 22:16:41 +0100
commit0bd948edfea280cf9f05e21cd5bef4b7fdf3335c (patch)
tree1b3f4bbc77f07f3a5f204b688694704d59f3d493 /irc_im.c
parent917a83ee526b8e5baaf451888cd0a3149894697b (diff)
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.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/irc_im.c b/irc_im.c
index dcba6f8f..caf0e38e 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -107,6 +107,14 @@ static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old
if( g_hash_table_lookup( irc->watches, iu->key ) )
irc_send_num( irc, 601, "%s %s %s %d :%s", iu->nick, iu->user,
iu->host, (int) time( NULL ), "logged offline" );
+
+ /* Send a QUIT since those will also show up in any
+ query windows the user may have, plus it's only
+ one QUIT instead of possibly many (in case of
+ multiple control chans). If there's a channel that
+ shows offline people, a JOIN will follow. */
+ if( set_getbool( &bee->set, "offline_user_quits" ) )
+ irc_user_quit( iu, "Leaving..." );
}
}