Page 1 of 1

levellimit

Posted: Sun Mar 02, 2008 3:33 am
by slcker76
I've got the levelimit module installed, it was working last night b4 i went to bed, and now its no longer working
i set a channel +P a and regular server admins can get in, i set it as +P N and same thing.. i was wondering what could be causing this

Re: levellimit

Posted: Sun Mar 02, 2008 10:34 pm
by Cue
There's a little bug in the code, apparently it wasn't fixed for the downloadable file yet.

Search the forum quickly for levellimit, the fix is here. If it still doesn't work I can look at my copy, It works good for me.

Re: levellimit

Posted: Tue Mar 04, 2008 1:08 am
by slcker76
I found the script that supposed to be the fix, for the compile issue, the script compiles find, and its opers on one shell only that can get into the channels, i've deleted the ircd completely, re did the whole thing and the config still can get in to channels that other server admins can not

here are the flags for his oline OArhwgcLkKnGWHv and i've set the channel +P a for services admins only, I'm at wits end with this

Re: levellimit

Posted: Tue Mar 04, 2008 5:25 am
by Cue
Ok after looking at my edited copy of levellimit to the original, I noticed I had to change around levelToMode totally.

So find the levelToMode function and change this:

Code: Select all

        int mustHaveMode;
	switch (level)
	{
		case 'o':
			mustHaveMode |= UMODE_OPER;
		case 'C':
			mustHaveMode |= UMODE_COADMIN;
		case 'A':
			mustHaveMode |= UMODE_ADMIN;
		case 'a':
			mustHaveMode |= UMODE_SADMIN;
		case 'N':
			mustHaveMode |= UMODE_NETADMIN;
	}
	return mustHaveMode;
to this:

Code: Select all

	switch (level)
	{
		case 'o':
			return UMODE_OPER;
		case 'C':
			return UMODE_COADMIN;
		case 'A':
			return UMODE_ADMIN;
		case 'a':
			return UMODE_SADMIN;
		case 'N':
			return UMODE_NETADMIN;
	}