Need module cmdshun.dll on UnrealIRCD 4.x

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

Moderators: Gottem, Supporters

Post Reply
Epic
Posts: 6
Joined: Thu Jun 23, 2011 11:24 pm

Need module cmdshun.dll on UnrealIRCD 4.x

Post 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!
Syzop
UnrealIRCd head coder
Posts: 2135
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

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

Post 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.
Epic
Posts: 6
Joined: Thu Jun 23, 2011 11:24 pm

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

Post 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
Syzop
UnrealIRCd head coder
Posts: 2135
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

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

Post 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.
Epic
Posts: 6
Joined: Thu Jun 23, 2011 11:24 pm

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

Post 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.
Epic
Posts: 6
Joined: Thu Jun 23, 2011 11:24 pm

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

Post 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
SamehSpiky
Posts: 2
Joined: Mon Aug 08, 2011 9:35 pm

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

Post by SamehSpiky »

i need this module on linux too, no one helped yet to upgrade this very useful module?
TheMaker
Posts: 1
Joined: Tue Oct 02, 2018 12:20 am

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

Post 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;
		}
Post Reply