2016-09-07 10:06:14 -04:00
|
|
|
[ -f functions.sh ] && source functions.sh
|
|
|
|
|
|
|
|
units="$(command -v units)"
|
|
|
|
|
|
|
|
shift
|
|
|
|
chan="$1"
|
|
|
|
shift
|
|
|
|
if [ -z "$units" ]; then
|
|
|
|
msg "$chan" "I do not have access to units."
|
|
|
|
else
|
2020-08-12 22:05:09 -04:00
|
|
|
msg "$chan" "$($units -v ${*#* } | head -n1)"
|
2016-09-07 10:06:14 -04:00
|
|
|
fi
|