[DONE] operpasswd port for 4.0 request

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: 53
Joined: Sun Jan 15, 2017 5:06 pm

[DONE] operpasswd port for 4.0 request

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

http://www.angrywolf.org/operpasswd.tar.gz

BTW. Did I mention that Gottem, you are the man.

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

[DONE] operpasswd port for 4.0 request

Post by Gottem » Wed Jan 18, 2017 7:16 pm

Here you go. =]

I made some changes to this module as it relied on "netadmins" which Unreal 4.x doesn't have anymore. So I came up with a new operclass privilege to indicate who is able to set the snomask (using /mode <nick> +s +O). You also had to explicitly enable the snomask in the 3.x version, but it's now enabled by default. ;]

Config blocks:

Code: Select all

operclass netadmin-operpasswd {
	parent netadmin;
	privileges {
		operpasswd;
	};
};

operpasswd {
	enable-global-notices 1;
	//enable-logging 0;
	max-failed-operups 3;
	//failop-kill-reason "OPER bruteforce";
};
Since snomask notices are only sent to a server's local opers, you gotta use enable-global-notices to broadcast it to everyone with the snomask on them. Also, you have to specify something for max-failed-operups in order to get the kill to work, since the module sorta assumes 0 which means "disable this". The kill reason defaults to "Too many failed OPER attempts". =]
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

rcschaff
Posts: 53
Joined: Sun Jan 15, 2017 5:06 pm

Re: operpasswd port for 4.0 request

Post by rcschaff » Wed Jan 18, 2017 7:46 pm

Dude. You are amazing. I was just working on trying to get this working on my own. I did manage to get it to compile and kind of work, but I have no idea what I am doing with C :D.

erkut79
Posts: 20
Joined: Thu Jun 09, 2016 2:16 am

Re: operpasswd port for 4.0 request

Post by erkut79 » Wed Jan 18, 2017 7:53 pm

amazing Gottem :D

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

Re: operpasswd port for 4.0 request

Post by Gottem » Wed Jan 18, 2017 11:12 pm

No prob. There are some obscure changes from 3.x to 4.x so that might give you some issues yeah. =]
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

Post Reply