aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-03 01:39:39 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-03 01:39:39 +0100
commit6a9d068e73b6d08056302fdc85dd706a2dd647a5 (patch)
treef478fc61bc2e1c53ffcbd71fc081b91ac1324667 /irc_im.c
parente54112f152c375df81a21181f755ced5f57165bc (diff)
Restore away_devoice.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc_im.c b/irc_im.c
index 1363df4a..00ea3cd7 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -91,6 +91,10 @@ static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old
iu->host, (int) time( NULL ), "logged online" );
irc_channel_add_user( ic, iu );
+
+ if( set_getbool( &bee->set, "away_devoice" ) )
+ irc_channel_user_set_mode( ic, iu, ( bu->flags & BEE_USER_AWAY ) ?
+ 0 : IRC_CHANNEL_USER_VOICE );
}
else
{