Description an e-mail checker
 

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

Description an e-mail checker

Started by VAZ, 10 September, 2004, 02:49:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VAZ

is there possible to get a script that would check users description and e-mail , and if users would have like  a banned description  or e-mail they will be sent pm and kicked?

[PT]CableGuy

#1
Try this one:

--AntiAdvert in des/email v1.03 by Phatty
table = {
["dns2go"]="Advertising",
["myftpsite"]="Advertising",
["xxx"]="XXX",
["porn"]="Porn",
}

function Main()
	Bot = "BotName";
	frmHub:EnableFullData(1)
end

function DataArrival(user,data)
	if strsub(data,1,7) == "$MyINFO" then
		for i,v in table do 
			if strfind(data,i) then
				user:SendData(Bot,"You have "..v.." in description/email, please remove "..i.." and reconnect")
				SendToOps(Bot,user.sName.." has been kicked because of "..v.." in MyInfo string")
				user:Disconnect()
			end
		end
	end
end

See more info there ----> anti-ad in description
Good Luck.

VAZ


VAZ

there is only one problem with this script ...
lets say i have the word "dave" banned in description and e-mail ok.  but if someone puts "Dave or DAVE" he gets in... is it possible to fix this?  so it does not matter though you have D or d ..just so the whole word gets banned?

[UK]Madman

If you enter all your triggers in lower case, then change


if strfind(data,i) then


to this

if strfind(strlower(data),i) then

It converts all the information into lower case before checking, removes case sensitivity.

Probably :P

VAZ

thank you it works great  :))

kazi

Hi,  what should I change when i want it to check in the e-mail field?   for example  when e mail field is not empty  then drop user (or disconnects?)

SMF spam blocked by CleanTalk