summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-06-05 14:24:20 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2019-07-21 20:59:35 +0100
commitb837e35335414f4ff0a987311c5a59386aab5c77 (patch)
treec0f69917430c6c9cfdcbb3c181cbbbd6a71d056e
parent08c08040bab2e4c5a3c8156fa36ec2e6b5c76fca (diff)
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.
-rw-r--r--contrib/m_operspy.c2
1 files changed, 1 insertions, 1 deletions
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,