## 15.2. Advanced Features

There are other things you can do besides simply chatting. These functions are accessed by typing some commands in the chat window. These commands start with `/`, but do not confuse them with the usage of `/` in the main KildClient window to run Perl commands.

Here are the commands and their actions:

/emote `text`

  Sends `text` as an emote and not as a chat message, that is, sends a message in the form name text.

/chatall `text`

  Sends `text` to all chat connections.

/emoteall `text`

  Sends `text` as an emote to all chat connections.

/group `group name`

  Makes this chat connection a member of the specified group.

/cg `text`

  Sends `text` to all connections that are members of the group that this chat session belongs.

/eg `text`

  Sends `text` as an emote to all connections that are members of the group that this chat session belongs.

/name `nickname`

  Changes the chat nickname to the one given. This affects all chat sessions.

/color `code`

  Changes the color used in this chat session to the one specified. `code` is a color code as recognized by the `colorize` function. Note that this affects only chat messages and the text you send, if the chat peer sends messages in another color, they will be displayed in the color the peer chose. This affects all chat sessions.

/stripansi

  Strips ANSI color codes in messages received in this chat. That means that colors sent by the peer will not be displayed, and that even incoming messages will be displayed in your chat color.

/nostripansi

  Does not strip ANSI color codes in messages received in this chat. That means that colors sent by the peer will be displayed.

/ping

  Pings the other peer. If the connection is alive, they will reply to this request. Additionally, the time for the reply to be received is displayed.

/sendfile

  Attemps to send a file to the peer. A dialog will be displayed for you to select the file to send, and the file will be offered. If they accept, the file transfer will start.

/stopfile

  Stops the file transfer currently in progress.

/snoop

  Asks the peer if you can snoop them, that is, see everything they see in their MUD session. If they accept, everything they see will be sent to you and displayed.

/allowsnoop

  Allows the peer to snoop you, that is, they can see everything you see in your MUD session. Be careful with this command. By default snooping is not allowed to protect your privacy.

/noallowsnoop

  Disallows the peer to snoop you, that is, they cannot see what you see in your MUD session. By default snooping is disabled, and this command is used to disable it again if you had enabled it.

/info

  Shows some information about the chat session.

/hangup

  Stops this chat session. You will need to connect again to continue talking.

As you can see, the chat offers much more than simply chatting. One of its features is file transfer. To send a file, use the /sendfile command, as descrived above. When your peer wants to send you a file, a dialog box will be displayed telling you the name and size of the file. If you want the file, select Yes and another dialog will be displayed for you to you can select where to store the file. The file transfer will then begin. Or you can refuse the file by clicking No. You can interrupt a file transfer in progress by using the /stopfile command.

By default, you are prompted whenever somebody wants to talk with you. If you want to avoid this question and automatically accept all chats, set the `$chat::auto_accept_calls` variable to 1 (that is, enter something like `/$chat::auto_accept_calls = 1`). This setting will be remembered. Set it to 0 to have the prompts again.

If, however, you do not want to chat with anyone, the best thing is to disable accepting connections. Just type `/chat::noaccept`. Use `/chat::acceptcalls` to accept calls again.