From b1634a8935604d27bd0ef7fb8772a0d48a105a10 Mon Sep 17 00:00:00 2001 From: dequis Date: Tue, 26 Jan 2016 13:37:01 -0300 Subject: Don't send 301 RPL_AWAY when talking to contacts through &bitlbee Fixes trac ticket 865 ("Make bitlbee send "is away" and such status messages via &bitlbee channel instead of separate query window"), except that the solution is to not send them at all. --- irc_im.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc_im.c b/irc_im.c index 614819dd..080ecb7f 100644 --- a/irc_im.c +++ b/irc_im.c @@ -449,7 +449,8 @@ static gboolean bee_irc_user_privmsg(irc_user_t *iu, const char *msg) return FALSE; } - if ((away = irc_user_get_away(iu)) && + if (iu->last_channel == NULL && + (away = irc_user_get_away(iu)) && time(NULL) >= iu->away_reply_timeout) { irc_send_num(iu->irc, 301, "%s :%s", iu->nick, away); iu->away_reply_timeout = time(NULL) + -- cgit v1.2.3