mirror of
https://github.com/anope/anope.git
synced 2026-06-30 16:46:38 +02:00
Dont crash on HasPriv() on an empty access group
This commit is contained in:
+1
-1
@@ -372,7 +372,7 @@ bool AccessGroup::HasPriv(const Anope::string &name) const
|
||||
{
|
||||
if (this->super_admin)
|
||||
return true;
|
||||
else if (ci->GetLevel(name) == ACCESS_INVALID)
|
||||
else if (!ci || ci->GetLevel(name) == ACCESS_INVALID)
|
||||
return false;
|
||||
else if (this->founder)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user