Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


sockchat:commands:afk

This is an old revision of the document!


/afk

This command is used to mark the client user with “Away” status. Sending any message while in this state will remove this status.

Running this command will also update their user name by prepending a status message to it. This status message can be provided by appending an argument to the command, is to be converted to uppercase and can be up to five characters long with any additional characters being removed. The status message is prepended with < and suffixed with >_. If no status message argument is provided, the string AFK will be used, resulting in a prefix of <AFK>_.

Format

/afk [message?]

Examples

Without a message argument

If a user named kp with user ID 248 runs the following command:

/afk

It will update their display name to <AFK>_kp and result in the following sequence of packets being broadcast to all clients present in the same channel:

10\t248\t<AFK>_kp\tinherit\t1\f0\f0\f0\f0

With a message argument

If a user named Sword with user ID 100 runs the following command:

/afk Gaming

The argument will be truncated and uppercased to GAMIN, their display name will be updated to <GAMIN>_Sword and have the following sequence of packets sent to all clients present in the same channel:

10\t100\t<GAMIN>_Sword\tinherit\t1\f0\f0\f0\f0

Remarks

  • When combined with a nickname set through the /nick command, the AFK prefix will come BEFORE the nickname prefix. Example: <AFK>_~nickname.
  • Maximum length of the status message might be implementation defined.

See Also

sockchat/commands/afk.1744634146.txt.gz · Last modified: 2025/04/14 12:35 by flash