Page 1 of 1

[DONE] operpasswd port for 4.0 request

Posted: Tue Jan 17, 2017 1:54 am
by rcschaff
http://www.angrywolf.org/operpasswd.tar.gz

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

[DONE] operpasswd port for 4.0 request

Posted: Wed Jan 18, 2017 7:16 pm
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". =]

Re: operpasswd port for 4.0 request

Posted: Wed Jan 18, 2017 7:46 pm
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.

Re: operpasswd port for 4.0 request

Posted: Wed Jan 18, 2017 7:53 pm
by erkut79
amazing Gottem :D

Re: operpasswd port for 4.0 request

Posted: Wed Jan 18, 2017 11:12 pm
by Gottem
No prob. There are some obscure changes from 3.x to 4.x so that might give you some issues yeah. =]