summaryrefslogtreecommitdiff
path: root/modules/m_whois.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_whois.c')
-rw-r--r--modules/m_whois.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/m_whois.c b/modules/m_whois.c
index 85531a2..764e458 100644
--- a/modules/m_whois.c
+++ b/modules/m_whois.c
@@ -136,6 +136,10 @@ whois_person(struct Client *source_p, struct Client *target_p)
show_ip ? target_p->sockhost : "255.255.255.255");
}
+ if (HasUMode(target_p, UMODE_SSL))
+ sendto_one(source_p, form_str(RPL_WHOISSECURE), me.name,
+ source_p->name, target_p->name);
+
if (!EmptyString(target_p->certfp))
if (target_p == source_p || HasUMode(source_p, UMODE_OPER))
sendto_one(source_p, form_str(RPL_WHOISCERTFP), me.name,
@@ -143,11 +147,6 @@ whois_person(struct Client *source_p, struct Client *target_p)
if (MyConnect(target_p))
{
-#ifdef HAVE_LIBCRYPTO
- if (target_p->localClient->fd.ssl)
- sendto_one(source_p, form_str(RPL_WHOISSECURE),
- me.name, source_p->name, target_p->name);
-#endif
sendto_one(source_p, form_str(RPL_WHOISIDLE),
me.name, source_p->name, target_p->name,
idle_time_get(source_p, target_p),