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?

This commit is contained in:
Bram Matthys 2015-12-18 11:29:30 +01:00
parent 06b07e30dc
commit d68f63b5fe

View file

@ -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,