hbbs

[archived] bbs.hlirc.net
git clone https://hhvn.uk/hbbs
git clone git://hhvn.uk/hbbs
Log | Files | Refs | README | LICENSE

finger.sh (361B)


      1 #!/bin/sh
      2 
      3 . $cwd/include/userinfo.sh
      4 
      5 finger(){
      6 	user=$(head -n 1 | tr -d '\r')
      7 	[ ! -f $datadir/users/$user ] && error "no such user" && return
      8 
      9 	echo "Created: $(userget "$user" creation)"
     10 	echo "Email:   $(userget "$user" email)"
     11 	[ "$(userget "$user" nick)" != "" ] && echo "Nick:    $(userget "$user" nick)"
     12 	echo
     13 	cat $datadir/profile/$user
     14 	tput sgr0
     15 }