Hi people , i search a script wo collect ip's user to a file .log
I use this , i've lot of ip in pm but not safe in file...
U can help me ?
function Main()
Bot = "IP-Bot"
end
function NewUserConnected(user)
SendPmToOps(Bot,"l'user : "..user.sName..", viens de se connecte son Ip est: "..user.sIP)
end
Sorry , my english is so bad !
respect ,
cyberchris
Take a look at this (http://rincewind.magicprey.nl/download.php?view.126) and see if it suits your needs. It can be amended if you require.
Not really but i've add my script to your at this section :
----------------------------------------------------------------------------
-- Function MAIN
----------------------------------------------------------------------------
function Main()
Bot = "IP-Bot"
function NewUserConnected(user)
SendPmToOps(Bot,"l'user : "..user.sName..", viens de se connecte son Ip est: "..user.sIP)
if tBots.tIPLog.sIsReg == 1 then
frmHub:RegBot(tBots.tIPLog.sName,
tBots.tIPLog.sIsReg,
tBots.tIPLog.sDescription,
tBots.tIPLog.sEmail)
end
LoadFile("Rincewind's IP Log/IPLog.txt")
LoadFile("Rincewind's IP Log/UserLog.txt")
end
end
I've this message pm :
[2006-09-24 16:51] <?IP-Bot?> l'user : USER , viens de se connecte son Ip est: xx.xx.xx.xx
And it save in log.
work fine.
Thank for help Rincewind
Cyberchris