From 822e75b501efc57c533e65f68c55debd453415fd Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 25 Nov 2009 20:57:22 +0000 Subject: Fix a few more XOP related problems git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2668 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_xop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index a29756856..849cc5fba 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -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; -- cgit