NAME
chat – simple chat client for hubfs

SYNOPSIS
chat [ –n nick ] [ –j channel ] [ chatsrv ]

DESCRIPTION
chat is a simple client script for using hubfs(4) as an irc–like chat service. /srv/chat is the default target service file, which must have been created by a previously started hubfs.

The –n nick option sets user nickname, otherwise they will be prompted for one on connection. The –j channel option chooses a channel to connect to, otherwise the default /n/chat/chat channel will be targeted. The optional chatsrv parameter specifies a different file in /srv rather than the default /B /srv/chat

OPERATION
If invoked with no options the script will mount the hubfs at /n/chat and prompt for a user nickname, then begin reading and writing messages to /n/chat/chat in the manner of an irc session. The following commands are available during use: /n nick change user nickname. /j channel change the target of the chat to the specified channel. /c list the available channels within the server. /h print the help message and command list. /q quit the chat.

EXAMPLES
Connect to a chat service and begin chatting:
srv tcp!chat.9gridchan.info!9997 chat
chat

Start a new hubfs providing chat service and allow remote users to connect
hubfs –s chat
mount –c /srv/chat /n/chat
touch /n/chat/chat
chmod 666 /srv/chat
aux/listen1 tcp!*!9997 /bin/exportfs –S /srv/chat &

SOURCE
/sys/src/ants/hubfs/chat

SEE ALSO
hubfs(4)

BUGS
All chat logic is handled client side, so there is little protection from abuse.