1
0
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:
Adam
2013-08-29 23:22:48 -04:00
parent 3fabc2f831
commit e1a1cf0e6f
+1 -1
View File
@@ -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;