if ($0 == "trusted nick") {
%parts[] = $str.split(" ",$3);
if (%parts[0] == "!kb") {
if ($length(%parts) == 2) {
echo "Trigger !kb recognized";
} else {
echo "$0 has to put 2 arguments in the command";
}
}
}
There is missing in what channel you want to execute this and you could add an "$chan.ismeop" to test if you have rights to kickban. Perhaps the right if would be "$chan.ismeuserop" I am not sure what the differnce is.
Also you perhaps should check if the hostname of your trusted nick is right or better if that person is authed, I am right now not sure how.