hi peeps .. just added this to XN thaught id share it ..
-- 3X Bad Pass Cleaner By ??????Hawk??????
-- 03/04/2005
cTime = 1000 * 60 * 60 * 12 --// Time In Hrs Default 12 hrs
function Main()
SetTimer(cTime)
StartTimer()
end
function OnTimer()
CleanBans()
end
function CleanBans()
local t = GetBannedItemIp( "3x bad password")
if t then
while t do
t = GetBannedItemIp( "3x bad password")
Unban(t)
end
end
end
Have Fun Peeps
??????Hawk??????
damn, so damn simple thats its frightening, well done sir !!!, never thought of using the "3x bad pass" as a nick !! in the getbanneditemip function .
hi
Edited Above Code for Multiple instances.
Should have checked it with more first :P
??????Hawk??????
Op notify added
-- 3X Bad Pass Cleaner By ??????Hawk??????
-- 03/04/2005
-- Op Notify added 05/04/2005
Bot = frmHub:GetOpChatName() --// Comment for Hub Op Chat
--Bot = "Scripted Ops Chat Name" --// Uncomment for Hub Op Chat
CleanTime = 12 --// Time In Hrs Default 12 hrs
function Main()
Counter = 0
cTime = 1000 * 60 * 1
SetTimer(cTime)
StartTimer()
end
function OnTimer()
if Counter == (CleanTime * 60) then
CleanBans(1)
Counter = 0
else
CleanBans(0)
Counter = Counter + 1
end
end
function CleanBans(data)
local t = GetBannedItemIp( "3x bad password")
local LoopStop = t
if t then
while t do
if data == 1 then
Unban(t)
else
SendPmToOps(Bot, "User:- "..t.." Has been Banned for 3 X bad passwords Please Check.")
if LoopStop == t then break end
end
t = GetBannedItemIp( "3x bad password")
end
end
end