Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/moderation/LookupTables.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
// NOTE: Ensure that these lookup tables copied from NetModerationTables.h | |||||
// are kept in sync with the C++ engine | |||||
// Also ensure that code that uses these constants is executed after | |||||
// the constants are defined. | |||||
// enum class ModerationAction | |||||
const ModerationAction = | |||||
{ | |||||
KICK: 1, | |||||
BAN: 2, | |||||
KICK_BAN: 3, | |||||
MUTE: 4, | |||||
HELPER: 5, | |||||
UNBAN: 6, | |||||
UNMUTE: 7, | |||||
UNHELPER: 8, | |||||
LIST_BAN: 9, | |||||
LIST_MUTE: 10, | |||||
LIST_HELPER: 11 | |||||
}; | |||||
// enum class ModerationResponseType | |||||
const ModerationResponseType = | |||||
{ | |||||
// No responses, except admin notification of actions by helpers | |||||
SILENT: 0, | |||||
// Admin notification of actions by helpers, and error messages | |||||
INFO: 1, | |||||
// Broadcast announcements of successful effects of commands except list requests | |||||
ANNOUNCEMENT: 2, | |||||
}; | |||||
// enum class ModerationResponseCode | |||||
const ModerationResponseCode = | |||||
{ | |||||
UNUSED: 0, | |||||
FAILED: 1, | |||||
SUCCESS: 2, | |||||
PERMISSION_DENIED: 3, | |||||
IDENTIFIER_NOT_ON_SERVER: 4, | |||||
IDENTIFIER_NOT_IN_LIST: 5, | |||||
IDENTIFIER_ALREADY_IN_LIST: 6, | |||||
CANNOT_RESTRICT_HOST: 7, | |||||
SYNTAX_ERROR: 8, | |||||
CAPACITY_EXCEEDED: 9, | |||||
INSUFFICIENT_FILLER_DATA: 10, | |||||
LIST: 11 | |||||
}; | |||||
// enum class ModerationEffectType | |||||
const ModerationEffectType = | |||||
{ | |||||
IP: 1, | |||||
USERNAME: 2, | |||||
USERNAME_AND_IP: 3 | |||||
}; | |||||
// enum class ModerationIdentifierType | |||||
const ModerationIdentifierType = | |||||
{ | |||||
UNUSED: 0, | |||||
IP: 1, | |||||
USERNAME_PRESENT: 2, | |||||
USERNAME_NOT_PRESENT: 3, | |||||
USERNAME_IN_LIST_REGEX: 4, | |||||
USERNAME_COMMAND_ISSUER: 5, | |||||
GUID: 6 | |||||
}; | |||||
deepfreeze(ModerationAction); | |||||
deepfreeze(ModerationResponseType); | |||||
deepfreeze(ModerationResponseCode); | |||||
deepfreeze(ModerationEffectType); | |||||
deepfreeze(ModerationIdentifierType); |
Wildfire Games · Phabricator