nicklist='NICKNAMES: '
while read -r s p nick; do
- [ -d "/proc/$pid" ] && nicklist="${nicklist}/$nick/" \
+ [ -d "/proc/$p" ] && nicklist="${nicklist}/$nick/" \
|| sed -i -E "/^$s $p /d" "$nickfile"
done <"$nickfile"
- if ! tail -n20 "$chatfile" |grep -qxF "$nicklist"; then
+ if ! tail -n20 "$chatfile" |tac |grep -m1 '^NICKNAMES: ' |grep -qxF "$nicklist"; then
printf '%s\n' "$nicklist" >>"$chatfile"
fi
}
if [ ! -f "$chatfile" ]; then
yield_page create <<-EOF
+ [h1 No such Channel]
[form #nonexist method="POST"
There is no channel named $(HTML "$LOCATION")
- [submit "action" "create" Create]
+ [submit "action" "create" Set Up]
]
EOF
else