====== Commands ====== This page lists all Sock Chat commands that can be sent through the [[sockchat:c2s:message-send|Message Send]] packet. ===== Core ===== * [[sockchat:commands:afk|/afk]] - Sets the status of the current user to "Away". * [[sockchat:commands:ban|/ban]] - Issues a ban on a given user. * [[sockchat:commands:bans|/bans]] - Retrieves the list of users who are currently banned. * [[sockchat:commands:create|/create]] - Creates a new channel. * [[sockchat:commands:delchan|/delchan]] - Removes an existing channel. * [[sockchat:commands:delete|/delete]] - Removes an existing channel or message. * [[sockchat:commands:delmsg|/delmsg]] - Removes an existing message. * [[sockchat:commands:ip|/ip]] - Retrieves IP addresses of a given user. * [[sockchat:commands:join|/join]] - Joins a given channel. * [[sockchat:commands:kick|/kick]] - Kicks a given user. * [[sockchat:commands:me|/me]] - Describes an action. * [[sockchat:commands:msg|/msg]] - Sends a direct message to another user. * [[sockchat:commands:nick|/nick]] - Sets a nickname. * [[sockchat:commands:pardon|/pardon]] - Revokes a ban from a given user. * [[sockchat:commands:pardonip|/pardonip]] - Revokes a ban from a given IP address. * [[sockchat:commands:password|/password]] - Sets a password on the current channel. * [[sockchat:commands:rank|/rank]] - Sets a minimum required user rank on the current channel. * [[sockchat:commands:say|/say]] - Broadcasts a message to all connected clients. * [[sockchat:commands:who|/who]] - Lists all users connected to the server or present in a given channel. ===== 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. 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 ===== * [[sockchat:notices|Notices]] - Documents responses that may be given to any of these commands.