aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-01-26 13:37:01 -0300
committerdequis <dx@dxzone.com.ar>2016-03-20 00:58:05 -0300
commitb1634a8935604d27bd0ef7fb8772a0d48a105a10 (patch)
tree807ec0a13df73d12967e0f99fcf372f401d52525 /irc_im.c
parent82b0295645903c7f0fe53042eb4825bdfce5d9e1 (diff)
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.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c3
1 files changed, 2 insertions, 1 deletions
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) +