summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
6364809)
As such, only fall back to legacy RPL_AWAY if CLICAP_PRESENCE is not set on source_p.
target_p->name, target_p->servptr->name,
target_p->servptr->info);
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);
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
target_p->name, awaymsg);