diff options
author | dequis <dx@dxzone.com.ar> | 2016-01-26 13:37:01 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-03-20 00:58:05 -0300 |
commit | b1634a8935604d27bd0ef7fb8772a0d48a105a10 (patch) | |
tree | 807ec0a13df73d12967e0f99fcf372f401d52525 | |
parent | 82b0295645903c7f0fe53042eb4825bdfce5d9e1 (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.
-rw-r--r-- | irc_im.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) + |