mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 02:26:38 +02: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user