[DONE] operpasswd port for 4.0 request

These are old archives. They are kept for historic purposes only.

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 »

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

BTW. Did I mention that Gottem, you are the man.
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

[DONE] operpasswd port for 4.0 request

Post by Gottem »

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 (credit card or iDEAL, use the custom job fee option in my shop) ;];]
rcschaff
Posts: 53
Joined: Sun Jan 15, 2017 5:06 pm

Re: operpasswd port for 4.0 request

Post by rcschaff »

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 »

amazing Gottem :D
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

Re: operpasswd port for 4.0 request

Post by Gottem »

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 (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Post Reply