aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-10 19:38:00 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-10 19:38:00 +0200
commit776c334128210c1040ca321689a3c389df33b80c (patch)
tree338746c85c36be52a9ea29557ba6d4a5ee57e509
parent1219b92b73e57a7ea1a690fbbc45201bf830eadb (diff)
downloadxK-776c334128210c1040ca321689a3c389df33b80c.tar.gz
xK-776c334128210c1040ca321689a3c389df33b80c.tar.xz
xK-776c334128210c1040ca321689a3c389df33b80c.zip
kike: also send RPL_AWAY in WHOIS
-rw-r--r--kike.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index 6288e8c..0e5f2cb 100644
--- a/kike.c
+++ b/kike.c
@@ -1892,6 +1892,8 @@ irc_send_whois_reply (struct client *c, const struct client *target)
irc_send_reply (c, IRC_RPL_WHOISOPERATOR, nick);
irc_send_reply (c, IRC_RPL_WHOISIDLE, nick,
(int) (time (NULL) - target->last_active));
+ if (target->away_message)
+ irc_send_reply (c, IRC_RPL_AWAY, nick, target->away_message);
struct str_map_iter iter;
str_map_iter_init (&iter, &c->ctx->channels);