iif

#!/usr/bin/env rc
# frontend for ii irc client, sets window title and starts tailcat
if (test -z $1 || test -z $2) {
  echo 'Usage: '^$0^' [SERVER] [ENTITY]' >[1=2]
  exit 1
}
@{
  SERVER=$1; ENTITY=$2
  cd $HOME/irc/$SERVER
  echo '/j '^$ENTITY^' '^`{tput bel} > in
  echo `{tput -T xterm+sl tsl}'irc '$SERVER' '$ENTITY^`{tput -T xterm+sl fsl}
  tailcat $ENTITY/out > $ENTITY/in
}