Railgun

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

User Tools

Site Tools


sockchat:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sockchat:commands [2025/04/14 12:49] – wrong heading level flashsockchat:commands [2025/04/14 13:19] (current) flash
Line 25: Line 25:
   * [[sockchat:commands:who|/who]] - Lists all users connected to the server or present in a given channel.   * [[sockchat:commands:who|/who]] - Lists all users connected to the server or present in a given channel.
  
-===== Notices =====+===== Non-existent commands =====
  
 Attempting to run a command that does not exist may result a [[sockchat:notices:nocmd|nocmd]] notice being sent to the client. Attempting to run a command that does not exist may result a [[sockchat:notices:nocmd|nocmd]] notice being sent to the client.
 Server implementations forego this and post the issued command as a regular message to whatever channel the client sent it on. Server implementations forego this and post the issued command as a regular message to whatever channel the client sent it on.
  
 +==== Example ====
 +
 +In both of these cases the client issued non-existent command ''%%/beans soup%%''.
 +
 +=== Non-existent commands are caught ===
 +
 +The user receives the [[sockchat:notice:nocmd|nocmd]] notice with the formatting field set to ''%%beans%%'' without the leading slash.
 +
 +=== Non-existent commands are sent as messages ===
 +
 +Everyone present in the channel receives a [[sockchat:s2c:message-add|S2C Packet 2: Message Add]] packet with the Message Body field set to ''%%/beans soup%%''.
 ===== See Also ===== ===== See Also =====
  
   * [[sockchat:notices|Notices]] - Documents responses that may be given to any of these commands.   * [[sockchat:notices|Notices]] - Documents responses that may be given to any of these commands.
sockchat/commands.1744634971.txt.gz · Last modified: 2025/04/14 12:49 by flash