Page 1 of 1

Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Fri Jan 22, 2016 10:50 pm
by Epic
Need a working unit cmdshun.dll on UnrealIRCD 4.x.
A very useful feature for the administration and in some way to protect against flood-bots and hooligans. This helps administrators to set a shun-ban-lock on bad users to execute server commands, for example: /join, /whois, /nick ...

syntax: /cmdshun -+<nick/mask/list> <commands> <time> :reason
example: /cmdshun *@36.29.109.2 join,nick,whois 1h :It is forbidden to carry out these commands

If anyone can port this module to the latest version IRCD or write your Similarly, I will be very grateful!

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Sun Jan 24, 2016 12:50 pm
by Syzop
You'd have to post (a link to) the source code here, so cmdshun.c (not .dll). Then someone may be able to convert the module for you.

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Sun Jan 24, 2016 3:17 pm
by Epic
cmdshun.c
Please find here and put the source code: http://pastebin.com/7HtVJJNq
We need to port to UnrealIRCD 4.x for Windows in .dll

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Sat Jan 30, 2016 10:15 am
by Syzop
Ok. Perhaps DBoyz could help you (no guarantees). It looks like an interesting module but I'm rather busy at the moment with other things.

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Wed Feb 10, 2016 3:06 pm
by Epic
It would also be useful to protect the use of this feature through the entry in the IRCD config, not only to run the command, but also occur when you connect with the specified mask user data shun-ban on the performance of these server commands. Eg:

Code: Select all

allow {
    ip                *@*;
    hostname          *@*;
    class             clients;
    maxperip          2;
    cmdshun           join,nick,whois,list,kick,topic,quit;
    cmdshun-time      10m;
    cmdshun-connect   5:3;
};
Line cmdshun-connect - fixes the number of user connections specified time and if it is exceeded, the protection is activated cmdshun. If this line is not present, then work without checking the number of connections..
Line cmdshun-time - shall determine the time, how much it will be prohibited for each user.
The user can communicate, ask questions, get answers, but can not some time to carry out these commands, in order to protect the server from the influx of flood bots. Blocked users to command /join the administration may invite to force the team to the desired channel: /sajoin nick #chan. Please do this function, I think, many administrators will be happy and say thank you. This is very useful, I use the old IRCD.

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Wed Feb 10, 2016 3:37 pm
by Epic
To remotely enable or disable the admins will need a team: /cmdshun <on|off>
Also, you can still add a line in the config: cmdshun-reason

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Fri Aug 17, 2018 9:54 am
by SamehSpiky
i need this module on linux too, no one helped yet to upgrade this very useful module?

Re: Need module cmdshun.dll on UnrealIRCD 4.x

Posted: Tue Oct 02, 2018 12:25 am
by TheMaker
To be fair I'm running 3.2.10.2 and I can't get cmdshun to work. It compiles fine (but redefines a numeric), loads and when I go to use it, no matter what I specify it'll always tell me the time I specified is out of range, any ideas on how I can fix this?

Code: Select all

else if (DEFAULT_BANTIME)
			secs = DEFAULT_BANTIME;

		now = TStime();
		if (secs)
			secs += now;

		ircsprintf(set_at, "%ld", now);
		ircsprintf(expire_at, "%ld", secs);

		i = atol(expire_at);
		t = gmtime((TS *)&i);
		if (!t)
		{
			sendnotice(sptr, "*** [error] The time you specified "
				"is out of range");
			return 0;
		}