From c494df77a36b8055457979446b87fdb1f0c073a2 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 5 Jun 2016 14:24:20 +0100 Subject: Fix empty sockhost Debatable whether this is the right fix or not - it looks like the NICK/UID parsing code never fills in sockhost for remote clients, despite receiving this information in the message from other servers. --- contrib/m_operspy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/m_operspy.c b/contrib/m_operspy.c index e542368..5e2b1a0 100644 --- a/contrib/m_operspy.c +++ b/contrib/m_operspy.c @@ -487,7 +487,7 @@ operspy_whois(struct Client *client_p, int parc, char *parv[]) sendto_one(client_p, form_str(HasUMode(target_p, UMODE_ADMIN) ? RPL_WHOISADMIN : RPL_WHOISOPERATOR), me.name, client_p->name, target_p->name); - if (strcmp(target_p->sockhost, "0")) + if (strcmp(target_p->sockhost, "0") && target_p->sockhost[0] != '\0') { sendto_one(client_p, form_str(RPL_WHOISACTUALLY), me.name, client_p->name, target_p->name, -- cgit