luaapi:px_setman
This is an old revision of the document!
Setting manager metatable functions
Function | Description | ||
---|---|---|---|
SetMan.Save() | Save settings. | ||
SetMan.GetMOTD() | Return actual MOTD. | ||
SetMan.SetMOTD(sString) | Set MOTD. <html> | </html> is not allowed. | |
SetMan.GetBool(nBoolId) | Return true or nil for given identificator. | ||
SetMan.SetBool(nBoolId, bBoolean) | Set boolean value for given identificator. | ||
SetMan.GetNumber(nNumberId) | Return value for given identificator. | ||
SetMan.SetNumber(nNumberId, nNumber) | Set value for given identificator. | ||
SetMan.GetString(nStringId) | Return string or nil for given identificator. | ||
SetMan.SetString(nStringId, sString) | Set string for given identificator. | ||
SetMan.GetMinShare() | Return min share in bytes. | ||
SetMan.SetMinShare(nShareInBytes) | Set min share in bytes. | ||
SetMan.SetMinShare(nMinShare, nShareUnits) | nMinShare max is 9999. nShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB | ||
SetMan.GetMaxShare() | Return max share in bytes. | ||
SetMan.SetMaxShare(nShareInBytes) | Set max share in bytes. | ||
SetMan.SetMaxShare(nMaxShare, nShareUnits) | nMaxShare max is 9999. nShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB | ||
SetMan.SetHubSlotRatio(nHubs, nSlots) | Set hub/slot ratio. | ||
SetMan.GetOpChat() | Return table with sNick, sDescription, sEmail, bEnabled. | ||
SetMan.SetOpChat(bEnabled, sNewOpChatName, sNewDescription, sNewEmail) | Max length of string is 64 chars !!! In nick is not allowed $<html> | </html><>:?*“/\ and space. In Description and Email is not allowed $ and <html> | </html>. Return nil when failed, true when success. |
SetMan.GetHubBot() | Return table with sNick, sDescription, sEmail, bEnabled, bUsedAsHubSecAlias. | ||
SetMan.SetHubBot(bEnabled, sNewHubBotName, sNewDescription, sNewEmail, bUseAsHubSecAlias) | Max length of string is 64 chars !!! In nick is not allowed $<html> | </html><>:?*”/\ and space. In Description and Email is not allowed $ and <html> | </html>. Return nil when failed, true when success. |
luaapi/px_setman.1351382624.txt.gz · Last modified: 28/10/2012 00:03 by ppk