converting problem...
 

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

converting problem...

Started by Daywalker, 25 March, 2005, 22:47:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daywalker

Can some1 help me with this script?...i'm new with this stuff  :P


BadFiles = { 
["childsex"]=1, 
["childporn"]=2, 
["underage"]=3, 
["animalsex"]=4, 
["preteen"]=5,
["r@ygold"]=6, 
["lolita"]=7, 
["rape"]=8,
["incest"]=9, 
["beastiality"]=10, 
["rape"]=11,
}


function DataArrival(tUser, sData)
	if tUser.bOperator == nil then
		if string.sub(sData, 1, 12) == "$Search Hub:" then 
			local _,_,  sSearch = string.find(sData, "$Search Hub:%S+%s+%a%?%a%?%d+%?%d+%?(.*)|")
				for key,a in BadFiles do 
					if( string.find( string.lower(sSearch), key) ) then 
						 SendPmToOps(frmHub:GetOpChatName(), "\r\n\r\nThis user is searching for Bad files Please check their share:-\r\n\r\nUsername:-\t"..tUser.sName.."\r\n\IP:-\t\t" .. tUser.sIP .. "\r\nSearched for:-\t"..key.."\r\nTotalkey:- \t".. sSearch .."\r\n\r\n" )   
					end 
				end	
		elseif string.sub(sData, 1, 7) == "$Search" then 
			local _,_, sSearch = string.find(sData, "%$Search %d+%.%d+%.%d+%.%d+:%d+%s+%a%?%a%?%d+%?%d+%?(.*)|")
				for key,a in BadFiles do 
					if( string.find( string.lower(sSearch), key) ) then 
						 SendPmToOps(frmHub:GetOpChatName(), "\r\n\r\nThis user is searching for Bad files Please check their share:-\r\n\r\nUsername:-\t"..tUser.sName.."\r\n\IP:-\t\t" .. tUser.sIP .. "\r\nSearched for:-\t"..key.."\r\nTotalkey:- \t".. sSearch .."\r\n\r\n" )   
					end 
				end
		end
	end
end

I don't know what i did wrong...but i think i'm overdoin' some things...
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

jiten

Try this:

BadFiles = { 
["childsex"]=1, 
["childporn"]=2, 
["underage"]=3, 
["animalsex"]=4, 
["preteen"]=5,
["r@ygold"]=6, 
["lolita"]=7, 
["rape"]=8,
["incest"]=9, 
["beastiality"]=10, 
["rape"]=11,
}


function SearchArrival (tUser, sData)
	if tUser.bOperator == nil then
		if string.sub(sData, 1, 12) == "$Search Hub:" then 
			local _,_,  sSearch = string.find(sData, "$Search Hub:%S+%s+%a%?%a%?%d+%?%d+%?(.*)|")
				for key,a in BadFiles do 
					if( string.find( string.lower(sSearch), key) ) then 
						 SendPmToOps(frmHub:GetOpChatName(), "\r\n\r\nThis user is searching for Bad files Please check their share:-\r\n\r\nUsername:-\t"..tUser.sName.."\r\n\IP:-\t\t" .. tUser.sIP .. "\r\nSearched for:-\t"..key.."\r\nTotalkey:- \t".. sSearch .."\r\n\r\n" )   
					end 
				end	
		elseif string.sub(sData, 1, 7) == "$Search" then 
			local _,_, sSearch = string.find(sData, "%$Search %d+%.%d+%.%d+%.%d+:%d+%s+%a%?%a%?%d+%?%d+%?(.*)|")
				for key,a in BadFiles do 
					if( string.find( string.lower(sSearch), key) ) then 
						 SendPmToOps(frmHub:GetOpChatName(), "\r\n\r\nThis user is searching for Bad files Please check their share:-\r\n\r\nUsername:-\t"..tUser.sName.."\r\n\IP:-\t\t" .. tUser.sIP .. "\r\nSearched for:-\t"..key.."\r\nTotalkey:- \t".. sSearch .."\r\n\r\n" )   
					end 
				end
		end
	end
end


Best regards,

jiten

Daywalker

tnx to jiten....i think i was to tired to see that mistake  :rolleyes:

it works great now  :D
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

jiten


Daywalker

I tryed ..on request of TTB to exclude the TTH search but
 it's something i can't get fixed is it possible at all, because Tiger Tree Hashing files are client related  ?(

some TTH strings looks like this
TTH:WSHJKUTRAPELLPWMAXZ

it's about the RAPE thingy that's the bug :P
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

SMF spam blocked by CleanTalk