Seemt to me I start the code with that.
Code:
 if (.settrivchan == $strip($1)) { 

That is for openening.
Now I want to check if settrivchan is spelled correct and ifnot send a msg how to use the command.
The command starts with a . so i thought that on .settrivchan
Code:
 if ($right($strip($1),-1) != settrivchan) 

would check that.
Perhaps it needs a else or a elseif