PtokaX Lua scripting interface

# RegMan metatable

RegMan.Save() | - Save registered users.
RegMan.GetRegsByProfile(nProfileNumber) | - 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, sPass, nProfileNumber) | - 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, nProfileNumber) | - 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.