I see what happens now. It's apparently missing a curly bracket, and the curly bracket between those two else conditions is needless:> if ($2) {
set %WhoisResult $chan
}
if ($left($2,1) == $chr(35)) {
whois $2
}
else { whois $2 }
else { msg $chan Syntax is !whois . }
}Still, though, the second if condition to check if $2 starts with # is redundant.