====== Setting manager table functions ====== ^ Function ^ Description ^ |SetMan.Save() | Save settings.| | | | |SetMan.GetMOTD() | Return actual MOTD.| |SetMan.SetMOTD(sString) | Set MOTD. | is not allowed.| | | | |SetMan.GetBool([[luaapi:setting_bools_ids|iBoolId]]) | Return true or nil for given identificator.| |SetMan.SetBool([[luaapi:setting_bools_ids|iBoolId]], bBoolean) | Set boolean value for given identificator.| | | | |SetMan.GetNumber([[luaapi:setting_numbers_ids|iNumberId]]) | Return value for given identificator.| |SetMan.SetNumber([[luaapi:setting_numbers_ids|iNumberId]], iNumber) | Set value for given identificator.| | | | |SetMan.GetString([[luaapi:setting_strings_ids|iStringId]]) | Return string or nil for given identificator.| |SetMan.SetString([[luaapi:setting_strings_ids|iStringId]], sString) | Set string for given identificator.| | | | |SetMan.GetMinShare() | Return min share in bytes.| |SetMan.SetMinShare(iShareInBytes) | Set min share in bytes.| |SetMan.SetMinShare(iMinShare, iShareUnits) | iMinShare max is 9999. iShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB| | | | |SetMan.GetMaxShare() | Return max share in bytes.| |SetMan.SetMaxShare(iShareInBytes) | Set max share in bytes.| |SetMan.SetMaxShare(iMaxShare, iShareUnits) | iMaxShare max is 9999. iShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB| | | | |SetMan.SetHubSlotRatio(iHubs, iSlots) | 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 $|<>:?*"/\ and space. In Description and Email is not allowed $ and |. 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 $|<>:?*"/\ and space. In Description and Email is not allowed $ and |. Return nil when failed, true when success.|