SimTX API v24/Packets/IpModerationRequest
Appearance
| Packet ID | 9(0x09)
|
|---|---|
| Direction | Client → server |
| Session | Moderation |
| Body size | Variable |
| Permission | moderation.manage
|
| Answered by | IpModerationResult |
IpModerationRequest bans or unbans a client address. It is only accepted on a moderation session.
Layout
| Field | Type | Description |
|---|---|---|
packetId |
u8 |
Always 9.
|
action |
UTF |
BAN or UNBAN.
|
target |
UTF |
An IP address, or the callsign of a connected station whose address should be used. |
reason |
UTF |
Reason, shown to the banned user. |
durationSeconds |
i64 |
Ban duration. 0 means permanent. At most 3,650 days. Must not be negative. |
Effects
A ban disconnects the address's receiver and transmitter sessions, sends a level 1 Banner to its control sessions, and rejects new game connections from it with IP_BANNED.