the -t option was ineffective. this fixes is.
fix incompatibility with 9vx as its tcp/status
file returns slightly different format than
Plan 9.
strip annoying \ 2 character from nickserv.
echo NICK $nick > $netdir/data
if (~ $#pass 1)
echo PRIVMSG 'nickserv :'identify $"pass > $netdir/data
+ if(~ $#target 1){
+ title
+ echo JOIN $target > $netdir/data
+ }
while (cmd=`{read}) {
msg=()
out=()
}
fn pretty {
- while (~ `{cat $netdir/status} Established*) {
+ while (~ `{cat $netdir/status} *Established*) {
line=`{read}
switch ($line) {
case *JOIN* *QUIT* *PART* *NICK*
netdir=`{basename -d $clonefile} ^ / ^ `{cat /fd/4}
echo connect $ip!$port >$netdir/ctl || exit 'cannot connect'
echo connected to tcp!$ip!$port on $netdir
- cat $netdir/data | tr -d '\r' | pretty &
+ cat $netdir/data | tr -d '\r\ 2' | pretty &
work
}