From d68f63b5fe5d714791bf1e80eec4bee89a20ff43 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 18 Dec 2015 11:29:30 +0100 Subject: [PATCH] If an oper whois'ed an oper who didn't use /OPER but OperServ to become oper then the IRCd would crash when trying to resolve the oper login name. Clear, right? --- src/modules/m_whois.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/m_whois.c b/src/modules/m_whois.c index 7379948fc..065ac6009 100644 --- a/src/modules/m_whois.c +++ b/src/modules/m_whois.c @@ -324,7 +324,9 @@ CMD_FUNC(m_whois) operclass = oper->operclass; sendto_one(sptr, ":%s 313 %s %s :is %s (%s) [%s]", me.name, - sptr->name, name, buf, acptr->user->operlogin, operclass); + sptr->name, name, buf, + acptr->user->operlogin ? acptr->user->operlogin : "unknown", + operclass); } else sendto_one(sptr,