1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 10:33:12 +02:00

Fix a few more XOP related problems

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2668 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-11-25 20:57:22 +00:00
parent e2c6825cd2
commit 822e75b501
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1857,8 +1857,10 @@ void cs_remove_nick(const NickCore * nc)
if (ca->in_use && ca->nc == nc) {
ca->in_use = 0;
ca->nc = NULL;
ci->accesscount--;
}
}
CleanAccess(ci);
for (akick = ci->akick, j = 0; j < ci->akickcount; akick++, j++) {
if ((akick->flags & AK_USED) && (akick->flags & AK_ISNICK)
+2 -2
View File
@@ -174,9 +174,9 @@ int do_vop(User * u)
int xop_del(User * u, ChannelInfo * ci, ChanAccess * access, int *perm, int uacc, int xlev)
{
char *nick = access->nc->display;
if (!access->in_use || access->level != xlev)
if (!access->in_use || !access->nc || access->level != xlev)
return 0;
char *nick = access->nc->display;
if (!is_services_admin(u) && uacc <= access->level) {
(*perm)++;
return 0;