mirror of
https://github.com/matrix-construct/construct
synced 2024-09-08 01:35:39 +02:00
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.
This commit is contained in:
parent
54ff698839
commit
8f2d1ccf7f
1 changed files with 1 additions and 1 deletions
|
@ -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->name, target_p->servptr->name,
|
||||||
target_p->servptr->info);
|
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),
|
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
|
||||||
target_p->name, awaymsg);
|
target_p->name, awaymsg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue