kike: also send RPL_AWAY in WHOIS

This commit is contained in:
Přemysl Eric Janouch 2014-08-10 19:38:00 +02:00
parent 1219b92b73
commit 776c334128
1 changed files with 2 additions and 0 deletions

2
kike.c
View File

@ -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);