From 84ac00e953c9d8a03bd7b76bcdf5de26832edcfa Mon Sep 17 00:00:00 2001 From: jantje_85 Date: Wed, 25 Nov 2009 22:57:00 +0000 Subject: Fix bug #1114. Fixed a bug in cs_clear caused by do_cmode() modifying params passed to it. Also fixed some warnings in cs_xop. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2671 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_xop.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/core/cs_xop.c') diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index 849cc5fba..5cf377650 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -174,9 +174,10 @@ int do_vop(User * u) int xop_del(User * u, ChannelInfo * ci, ChanAccess * access, int *perm, int uacc, int xlev) { + char *nick; if (!access->in_use || !access->nc || access->level != xlev) return 0; - char *nick = access->nc->display; + nick = access->nc->display; if (!is_services_admin(u) && uacc <= access->level) { (*perm)++; return 0; @@ -339,7 +340,7 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs) } } else if (stricmp(cmd, "DEL") == 0) { - int deleted, a, b; + int deleted; if (readonly) { notice_lang(s_ChanServ, u, xmsgs[1]); return MOD_CONT; @@ -439,9 +440,6 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs) if (!sent_header) notice_lang(s_ChanServ, u, xmsgs[7], chan); } else if (stricmp(cmd, "CLEAR") == 0) { - uint16 j = 0; - int a, b; - if (readonly) { notice_lang(s_ChanServ, u, CHAN_ACCESS_DISABLED); return MOD_CONT; -- cgit