mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Bug #1217 - Fix crash from deleting nonexistant users from XOP list
This commit is contained in:
@@ -332,13 +332,13 @@ class XOPBase : public Command
|
||||
unsigned i, end;
|
||||
for (i = 0, end = ci->GetAccessCount(); i < end; ++i)
|
||||
{
|
||||
access = ci->GetAccess(nc, level);
|
||||
access = ci->GetAccess(nc, i);
|
||||
|
||||
if (access->nc == nc)
|
||||
break;
|
||||
}
|
||||
|
||||
if (i == end)
|
||||
if (i == end || access->level != level)
|
||||
{
|
||||
u->SendMessage(ChanServ, messages[XOP_NOT_FOUND], nick.c_str(), ci->name.c_str());
|
||||
return MOD_CONT;
|
||||
|
||||
Reference in New Issue
Block a user