PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_regman

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
luaapi:px_regman [06/04/2013 13:08]
ppk b430
luaapi:px_regman [16/06/2015 14:03] (current)
ppk
Line 1: Line 1:
-====== Registered users manager metatable functions ======+====== Registered users manager table functions ======
  
 ^ Function ^ Description ^ ^ Function ^ Description ^
 |RegMan.Save()|Save registered users.| |RegMan.Save()|Save registered users.|
 | | | | | |
-|RegMan.GetRegsByProfile(nProfileNumber)|Return table with all registered users with given profile as [[luaapi:reguser_table|registered user table]]s.|+|RegMan.GetRegsByProfile(iProfileNumber)|Return table with all registered users with given profile as [[luaapi:reguser_table|registered user table]]s.|
 |RegMan.GetNonOps()|Return table with all registered users without operator status as [[luaapi:reguser_table|registered user table]]s.| |RegMan.GetNonOps()|Return table with all registered users without operator status as [[luaapi:reguser_table|registered user table]]s.|
 |RegMan.GetOps()|Return table with all registered users with operator status as [[luaapi:reguser_table|registered user table]]s.| |RegMan.GetOps()|Return table with all registered users with operator status as [[luaapi:reguser_table|registered user table]]s.|
Line 10: Line 10:
 |RegMan.GetRegs()|Return table with all registered users as [[luaapi:reguser_table|registered user table]]s.| |RegMan.GetRegs()|Return table with all registered users as [[luaapi:reguser_table|registered user table]]s.|
 | | | | | |
-|RegMan.AddReg(sNick, nProfileNumber)|Chars $<html>|</html> 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, iProfileNumber)|Chars $<html>|</html> 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, nProfileNumber)|Chars $<html>|</html> and space not allowed in nick. Char <html>|</html> not allowed in password. Max nick/pass length 64 chars. Return nil when failed, true if success.|+|RegMan.AddReg(sNick, sPass, iProfileNumber)|Chars $<html>|</html> and space not allowed in nick. Char <html>|</html> 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.DelReg(sNick)|Return nil when failed, true if success.|
-|RegMan.ChangeReg(sNick, sPass, nProfileNumber)|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.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.| |RegMan.ClrRegBadPass(sNick)|Clear advanced password protection bad password count for given nick. Return nil when failed, true if success.|
luaapi/px_regman.1365253684.txt.gz · Last modified: 06/04/2013 13:08 by ppk