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>2016-06-05 17:47:57 +0100
commitc494df77a36b8055457979446b87fdb1f0c073a2 (patch)
tree3a45ab32c4abd8e86edf90af2a6460859161eba1
parent5bf6c6065c2e1fc95e057b25ed48d02a2c003310 (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,