kike: also send RPL_AWAY in WHOIS
This commit is contained in:
parent
1219b92b73
commit
776c334128
2
kike.c
2
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_WHOISOPERATOR, nick);
|
||||||
irc_send_reply (c, IRC_RPL_WHOISIDLE, nick,
|
irc_send_reply (c, IRC_RPL_WHOISIDLE, nick,
|
||||||
(int) (time (NULL) - target->last_active));
|
(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;
|
struct str_map_iter iter;
|
||||||
str_map_iter_init (&iter, &c->ctx->channels);
|
str_map_iter_init (&iter, &c->ctx->channels);
|
||||||
|
Loading…
Reference in New Issue
Block a user