static void
single_whois(struct Client *source_p, struct Client *target_p, int operspy)
{
- const char *awaymsg;
char buf[BUFSIZE];
rb_dlink_node *ptr;
struct membership *msptr;
target_p->name, target_p->servptr->name,
target_p->servptr->info);
- if(!IsCapable(source_p, CLICAP_PRESENCE) && (awaymsg = get_metadata(target_p, "away")) != NULL)
+ if(target_p->user->away)
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
- target_p->name, awaymsg);
+ target_p->name, target_p->user->away);
if(IsOper(target_p))
{