levellimit

These are old archives. They are kept for historic purposes only.
Post Reply
slcker76
Posts: 5
Joined: Sat Mar 01, 2008 3:07 pm

levellimit

Post by slcker76 » Sun Mar 02, 2008 3:33 am

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

Cue
Posts: 6
Joined: Sun Feb 17, 2008 2:57 am

Re: levellimit

Post by Cue » Sun Mar 02, 2008 10:34 pm

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.

slcker76
Posts: 5
Joined: Sat Mar 01, 2008 3:07 pm

Re: levellimit

Post by slcker76 » Tue Mar 04, 2008 1:08 am

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

Cue
Posts: 6
Joined: Sun Feb 17, 2008 2:57 am

Re: levellimit

Post by Cue » Tue Mar 04, 2008 5:25 am

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;
	}
Cue
-CAIRC Services Operator

Post Reply