Hey! :-)
I cant find any examples in the documentation of how to make an if and then statement but heres what i figured (which of course doesnt work, argh!):
if (%test == no) and ($chan == #channel) { echo -s ARGH thats no good! | halt }
Is the trick just to make a normal if and then make another if inside the first ?!