mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-28 14:02:27 +01:00
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:
parent
06b07e30dc
commit
d68f63b5fe
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue