PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_core

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
luaapi:px_core [07/07/2013 04:01] – Integer fixes ppkluaapi:px_core [09/01/2016 15:14] (current) – Reg bot dissalowed characters correction. ppk
Line 1: Line 1:
-====== Core metatable functions ======+====== Core table functions ======
  
 ^ Function ^ Description ^ ^ Function ^ Description ^
Line 12: Line 12:
 |Core.SuspendAccepts(iTime) | Stop listening thread(s) for given time in seconds. Hub looks in this time like it is not running.| |Core.SuspendAccepts(iTime) | Stop listening thread(s) for given time in seconds. Hub looks in this time like it is not running.|
 | | | | | |
-|Core.RegBot(sBotName, sDescription, sEmail, bHaveKey) | Chars $<html>|</html><>:?*"/and space not allowed in nick$<html>|</html> not allowed in Description and Email, max length 64 chars per string. Return nil when failed, true when success.|+|Core.RegBot(sBotName, sDescription, sEmail, bHaveKey) | Chars $<html>|</html> and space not allowed in nick$<html>|</html> not allowed in Description and Email, max length 64 chars per string. Return nil when failed, true when success.|
 |Core.UnregBot(sBotName) | Return nil when failed, true when success.| |Core.UnregBot(sBotName) | Return nil when failed, true when success.|
 | | | | | |
Line 39: Line 39:
 |Core.GetUserAllData([[luaapi:user_table|tUser]]) | Add or update all user data in [[luaapi:user_table|user table]]. Return nil when failed (user is not online) or true when sucess.| |Core.GetUserAllData([[luaapi:user_table|tUser]]) | Add or update all user data in [[luaapi:user_table|user table]]. Return nil when failed (user is not online) or true when sucess.|
 |Core.GetUserData([[luaapi:user_table|tUser]], [[luaapi:user_data_ids|iValueId]]) | Add or update value of given id in [[luaapi:user_table|user table]]. Return nil when failed (user is not online) or true when sucess.| |Core.GetUserData([[luaapi:user_table|tUser]], [[luaapi:user_data_ids|iValueId]]) | Add or update value of given id in [[luaapi:user_table|user table]]. Return nil when failed (user is not online) or true when sucess.|
-|Core.GetUserValue([[luaapi:user_table|tUser]], [[luaapi:user_data_ids|iValueId]]) | Return value of wanted nValueId or nil when failed (user is not online).|+|Core.GetUserValue([[luaapi:user_table|tUser]], [[luaapi:user_data_ids|iValueId]]) | Return value of wanted iValueId or nil when failed (user is not online).|
 |Core.GetUsers(sIP) | Return online users from given ip as table with [[luaapi:user_table|user table]]s or nil when no user with that IP is found or invalid IP is given.| |Core.GetUsers(sIP) | Return online users from given ip as table with [[luaapi:user_table|user table]]s or nil when no user with that IP is found or invalid IP is given.|
 |Core.GetUsers(sIP, bAllData) | Return online users from given ip as table with [[luaapi:user_table|user table]]s or nil when no user with that IP is found or invalid IP is given. Use true for bAllData if you want [[luaapi:user_table|user table]] with all data.| |Core.GetUsers(sIP, bAllData) | Return online users from given ip as table with [[luaapi:user_table|user table]]s or nil when no user with that IP is found or invalid IP is given. Use true for bAllData if you want [[luaapi:user_table|user table]] with all data.|
luaapi/px_core.1373169698.txt.gz · Last modified: 07/07/2013 04:01 by ppk