PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: ATAG on 12 November, 2008, 18:47:57

Title: RegReport LUA 5.1x [Strict] [API 2]
Post by: ATAG on 12 November, 2008, 18:47:57
--[[
reg_report.lua v0.01 API2
by ATAG @ 12/11/08

Requested by P_pan

]]

reglist = {}

function OnStartup()
tmr = TmrMan.AddTimer(1000)
for i, user in ipairs(RegMan.GetRegs()) do
reglist[user.sNick] = true
end
end

function OnTimer()
for i, user in ipairs(RegMan.GetRegs()) do
if not reglist[user.sNick] then
reglist[user.sNick] = true
Core.SendToOpChat(user.sNick.." successfully added to registered users with profile: ".. ProfMan.GetProfile( user.iProfile).sProfileName)
end
end
end

function OnExit()
TmrMan.RemoveTimer(tmr)
reglist = nil
tmr = nil
collectgarbage("collect")
end
Title: Re: RegReport LUA 5.1x [Strict] [API 2]
Post by: P_pan on 12 November, 2008, 19:08:53
Thank You Atag!!!!

just what i needed

You rock aswell ;D
Title: Re: RegReport LUA 5.1x [Strict] [API 2]
Post by: P_pan on 01 December, 2008, 21:39:21
is it possibble to add the person (nick) who regged the new member?
and how to implent it in this script?

thnx!
Title: Re: RegReport LUA 5.1x [Strict] [API 2]
Post by: P_pan on 02 December, 2008, 19:29:06
thank You Mutor!!