Remove special CAP presence handling of /whois away message.

This cannot work because /whois is executed remotely too
and CAPs aren't known remotely.
This commit is contained in:
Jilles Tjoelker 2009-06-03 19:54:49 +02:00
parent fa00b4ada9
commit 7cc7a2c041
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,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(!IsCapable(source_p, CLICAP_PRESENCE) && (awaymsg = get_metadata(target_p, "away")) != NULL)
if((awaymsg = get_metadata(target_p, "away")) != NULL)
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
target_p->name, awaymsg);
@ -372,7 +372,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
DICTIONARY_FOREACH(md, &iter, target_p->user->metadata)
{
/* XXX: hack around "away" for legacy clients. --nenolod */
if (!IsCapable(source_p, CLICAP_PRESENCE) && !irccmp(md->key, "away"))
if (!irccmp(md->key, "away"))
continue;
sendto_one_numeric(source_p, RPL_WHOISMETADATA,