diff options
author | Adam <Adam@anope.org> | 2010-12-24 20:15:28 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-24 20:15:28 -0500 |
commit | 4f6232e6287c7ecf1105bc4154b7b31fe5a00b9d (patch) | |
tree | 57b709c14e991498eed6d7ba2aeb850b02ec4c91 | |
parent | 4e303566dc52dc2d3457af1af77fab23318a3570 (diff) |
Bug #1217 - Fix crash from deleting nonexistant users from XOP list
-rw-r--r-- | modules/core/cs_xop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/cs_xop.cpp b/modules/core/cs_xop.cpp index 4dbd09525..a3bcb119e 100644 --- a/modules/core/cs_xop.cpp +++ b/modules/core/cs_xop.cpp @@ -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; |