1
0
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:
Adam
2010-12-24 20:15:28 -05:00
parent 4e303566dc
commit 4f6232e628
+2 -2
View File
@@ -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;