RegReport LUA 5.1x [Strict] [API 2]
 

RegReport LUA 5.1x [Strict] [API 2]

Started by ATAG, 12 November, 2008, 18:47:57

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ATAG

--[[
	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

P_pan

Thank You Atag!!!!

just what i needed

You rock aswell ;D

P_pan

is it possibble to add the person (nick) who regged the new member?
and how to implent it in this script?

thnx!

P_pan


SMF spam blocked by CleanTalk