PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


Sidebar


luaapi:px_regman

Registered users manager table functions

Function Description
RegMan.Save()Save registered users.
RegMan.GetRegsByProfile(iProfileNumber)Return table with all registered users with given profile as registered user tables.
RegMan.GetNonOps()Return table with all registered users without operator status as registered user tables.
RegMan.GetOps()Return table with all registered users with operator status as registered user tables.
RegMan.GetReg(sNick)Return registered user with given nick as registered user table or nil when reg with this nick not exist.
RegMan.GetRegs()Return table with all registered users as registered user tables.
RegMan.AddReg(sNick, iProfileNumber)Chars $| and space not allowed in nick. Max nick length 64 chars. Hub will ask user for password and after password is received then user will be registered. Return nil when failed, true if success.
RegMan.AddReg(sNick, sPass, iProfileNumber)Chars $| and space not allowed in nick. Char | not allowed in password. Max nick/pass length 64 chars. Return nil when failed, true if success.
RegMan.DelReg(sNick)Return nil when failed, true if success.
RegMan.ChangeReg(sNick, sPass, iProfileNumber)Return nil when failed, true if success. When you don't want to change password then use nil instead of string as second param.
RegMan.ClrRegBadPass(sNick)Clear advanced password protection bad password count for given nick. Return nil when failed, true if success.
luaapi/px_regman.txt · Last modified: 16/06/2015 16:03 by ppk