ExternalIRC, it is $1 without the dash. $1- means $1 $2 $3 $4 etc... etc...
if ($1 == cmd) { is more like it.