[DONE] netadmins port for 4.0

Need a module converted from 3.2.x to UnrealIRCd 4? Or looking for a certain module? Ask here.

Moderators: Gottem, Supporters

Post Reply
rcschaff
Posts: 52
Joined: Sun Jan 15, 2017 5:06 pm

[DONE] netadmins port for 4.0

Post by rcschaff » Tue Jan 17, 2017 1:50 am


Gottem
Posts: 127
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

[DONE] netadmins port for 4.0

Post by Gottem » Tue Jan 17, 2017 8:38 pm

Done.

Even though Unreal 4.x doesn't have a rank system, I've kept the name and will use part of the original terminology here.

The way it is now: prevents "netadmins" from getting killed/X:lined by "lower" opers and optionally by everyone but servers and U:Lines. Since ranks are no more, I went with a few operclass flags to indicate "netadmins" and their protection level. Also, TEMPSHUN wasn't overridden before but it is now. =]

Operclass example:

Code: Select all

operclass netadmin-protected {
	parent netadmin;
	privileges {
		m_netadmins { partial; };
	};
};
The innermost bit can be either partial or full. The first one means only other "netadmins" can do anything to you, the latter excludes those too. So people with full will still be able to kill the ones with partial. Anyone with either of those flags will count as a "netadmin".

I'll probably get to the other modules tomorrow. ;]
If you like my modules, pls consider donating (through PayPal) ;];]

Callenbach
Posts: 13
Joined: Wed Mar 23, 2016 5:49 pm
Location: NL
Contact:

Re: [DONE] netadmins port for 4.0

Post by Callenbach » Tue Feb 14, 2017 7:51 am

Hallo Gottem,
Ik heb een vraag ik heb de module geinstaleerd

Ik heb dit in unrealircd.conf staan

Code: Select all

loadmodule "third/netadmins";
Waar moet de code die hier onder staat ik heb hem in /unrealircd/conf/operclass.default.conf onder aan gezet toen unreal rehash gedaan

Code: Select all

operclass netadmin-protected {
	parent netadmin;
	privileges {
		m_netadmins { partial; };
	};
};
Maar ben nog niet beschermt voor een server kill

Wat moet ik doen ?

Met vriendelijke groet

Erik Callenbach

Gottem
Posts: 127
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] netadmins port for 4.0

Post by Gottem » Tue Feb 14, 2017 1:10 pm

Well, putting custom operclasses in conf/operclass.default.conf is generally a bad idea, as an upgrade of Unreal overwrites it. =] If you're working with remote includes you can just set up a file with oper information (O:Lines, operclasses, ...) and include it on your server(s). Otherwise just put it in unrealircd.conf itself.

Other than that, this module only protects people from being killed by other opers:
Gottem wrote:
Tue Jan 17, 2017 8:38 pm
The way it is now: prevents "netadmins" from getting killed/X:lined by "lower" opers and optionally by everyone but servers and U:Lines.
If you like my modules, pls consider donating (through PayPal) ;];]

Callenbach
Posts: 13
Joined: Wed Mar 23, 2016 5:49 pm
Location: NL
Contact:

Re: [DONE] netadmins port for 4.0

Post by Callenbach » Tue Feb 14, 2017 5:21 pm

I have put the code in unrealircd.conf and rehash done as a Ircoperator I put a kill does not protect

Gottem
Posts: 127
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] netadmins port for 4.0

Post by Gottem » Tue Feb 14, 2017 6:02 pm

..Did you change your oper block to use that class as well? Also you may need to re-oper for it to become active.
If you like my modules, pls consider donating (through PayPal) ;];]

Callenbach
Posts: 13
Joined: Wed Mar 23, 2016 5:49 pm
Location: NL
Contact:

Re: [DONE] netadmins port for 4.0

Post by Callenbach » Tue Feb 14, 2017 6:36 pm

Je bedoelt in opers.conf deze line zetten?
verander
operclass netadmin-with-override;
naar
operclass netadmin-protected;

Gottem
Posts: 127
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: [DONE] netadmins port for 4.0

Post by Gottem » Tue Feb 14, 2017 6:40 pm

Correct. =]
If you like my modules, pls consider donating (through PayPal) ;];]

Callenbach
Posts: 13
Joined: Wed Mar 23, 2016 5:49 pm
Location: NL
Contact:

Re: [DONE] netadmins port for 4.0

Post by Callenbach » Tue Feb 14, 2017 9:10 pm

Ok thnx de module Module werk nu :)

Post Reply