Ban after 5 kicks
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Ban after 5 kicks

Started by patamon90, 25 October, 2004, 07:32:34

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

patamon90

Hello. Now I'm gonna disturb you one more time =)

I wounder if there is any script who perm ban a user who have been kicked (for example) 5 times. Not any bot who will come to userlist or anything, just a little script who adds itself to PtokaX and ban when it recordnize that a user has been kicked 5 times and auto ban him/her.

Thanks and I hope there is one of these scripts.

bolamix

Hi,
See this thread for a script which might do just what you want... enjoy ;)
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

nErBoS

Hi,

Mutor you are still using the wrong code that i have modified for saving tables. The erro is here...

Serialize(value, sKey, sTab.."\t");

it should be this...

sTmp = sTmp..Serialize(value, sKey, sTab.."\t");

Best regards, nErBoS
--## nErBoS Spot ##--

patamon90

No it didn't work.. anything else?
please, really need this, cos there is many fakers and it's not fun to ban them self..

patamon90

#4
Is it able to make the command ?kick to !kick ?
just woundering, or else I have to change alot of stuff in my scripts and clients =P

Oh forgot to tell.. I use PtokaX DC Hub 0.3.3.0 build 15.25 [debug]

patamon90

Okay thanks, now I just have to wait for someone to be kicked and (hopefully) banned after 5 times =P

patamon90

The script doesn't seems to work..

Hub:
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]


Scripts:
Autocleaner by plop
Brain-Master by nErBoS
Random Chat 1.0 by Mutor The Ugly
Deflood 4.5.3 by plop
"YourIpIs" by ???
RecordBot 0.952 by bonki 2003
ShowInfo 1.0 by latinmusic
"CurrentTime" by ???

And trying to get Ban-4X-Kick 1.0 to work (by Mutor)

please help =P

patamon90

Err, I didn't really understand that, But I have enabled that CMDs thing and then it comes alot of:

[07:39] STONY (IP) > $ConnectToMe Sebbe IP:PORT|
[07:39] [BoT]Police (IP) > $ConnectToMe [HUN][TUX]Vector512k_UP_search IP:PORT|
[07:39] reteus (IP) > $GetINFO Time:07:39 reteus|
[07:39] jms@proth.com (IP) > $GetINFO Time:07:39 jms@proth.com|
[07:39] sumetto (IP) > $RevConnectToMe sumetto franz|


IP = IP numbers =)
PORT = Port numbers =)

Just wanted those numbers secret =P

Please try to explain more =D

patamon90

Then I get this (My bot auto kick)

[13:30] [BoT]Police (IP) > $To: ACEDANYBOUCHT From: [BoT]Police $<[BoT]Police> You are being kicked because: Connection timeout 20 times|
[13:30] [BoT]Police (IP) > <[BoT]Police> !kick ACEDANYBOUCHT Connection timeout 20 times|
[13:30] [BoT]Police (IP) > $To: [BoT]Police From: [BoT]Police $<[BoT]Police> has been kicked ----> Connection timeout 20 times|
[13:30] x User removed: ACEDANYBOUCHT (Socket 760)

patamon90

No it didn't work =(

After I changed it looks like this:
function DataArrival(user, data)
data=strsub(data,1,-2)
_,_,cmd,unick = strfind( data, "(%S+)%s+(%S+)" )
	if cmd == "!kick" and user.bOperator then

Please help =P

patamon90

Please help, really need this =P

VidFamne

#11
You could try this;
function DataArrival(user, data)
data=strsub(data,1,-2)
_,_,cmd,unick = strfind( data, "^%b<>%s(%S+)%s+(%S+).*" )
	if cmd == "!kick" and user.bOperator then
A tiny change in reg.exp. ;)
**Edit** another little change

SMF spam blocked by CleanTalk