From: William Pitcock Date: Tue, 2 Jun 2009 07:17:42 +0000 (-0500) Subject: presence: If CLICAP_PRESENCE is enabled, then RPL_AWAY is replaced by the "away"... X-Git-Tag: proposed-charybdis-3.2.0~91 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/fa2a410abe67fe0a1327eec149451b971ab53360?hp=6364809623d49a61b894291b4e06fba0f90e3fab presence: If CLICAP_PRESENCE is enabled, then RPL_AWAY is replaced by the "away" keyword in the presence dataset. As such, only fall back to legacy RPL_AWAY if CLICAP_PRESENCE is not set on source_p. --- diff --git a/modules/m_whois.c b/modules/m_whois.c index c188a9a..04423f7 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -305,7 +305,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) target_p->name, target_p->servptr->name, target_p->servptr->info); - if((awaymsg = get_metadata(target_p, "away")) != NULL) + if(!IsCapable(source_p, CLICAP_PRESENCE) && (awaymsg = get_metadata(target_p, "away")) != NULL) sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY), target_p->name, awaymsg);