From 7cc7a2c041e01b98f5569e11c8d7da7350a93439 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 3 Jun 2009 19:54:49 +0200 Subject: [PATCH] Remove special CAP presence handling of /whois away message. This cannot work because /whois is executed remotely too and CAPs aren't known remotely. --- modules/m_whois.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/m_whois.c b/modules/m_whois.c index a111e91..950dbfa 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -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,