Table of Contents

/ban

This command can be used by moderators to forcibly remove other clients from the chat for a specified amount of time.

The main differences between this command and /kick in the original implementation were that not specifying an argument for this command would imply a permanent ban, whereas for /kick it implied instant revocation, and this command would also place a ban on the client's IP address, while /kick did not. Implementations can decide on their own whether they want to replicate the latter behaviour, the argument behaviour should remain consistent, however.

If an error occurred while trying to issue the ban one of the notices below will be sent to the client, otherwise the target user will receive S2C Packet 9: Forced Disconnect on all their connected clients and other clients present in the same channel will receive S2C Packet 3: User Remove with the reason being set to kick.

Format

/ban [user] [duration?]

Notices

If an error occurs whilst trying to issue the ban, one of the following notices will be sent to the client that issued the command.

Examples

Successful ban attempt

Client issues the following command:

/ban flash

Target user receives on all connected clients, followed by the connection being closed:

9\t1\t-1

Clients in the same channel will receive something among the lines of:

3\t1\tflash\tkick\t1744583077\t39988602271681

Attempting to ban a user with higher rank

Client issues the following command, in the unrealistic scenario where nook actually marked themself as away:

/ban <AFK>_nook 9999999

Client receives the following notice:

2\t1744636406\t-1\t1\fkickna\fnook\t40002254529965\t10010

Remarks

See Also