I think what you want here is something like so:
on 1:NICK:{
if ($nick == $me) && (Away isin $me) { load -rs1 no-query.mrc }
}
note that it checks to see that you are the person that is changing their nick and not just anyone and also note the load switch being -rs1 rather then just -rs. This is crucial with Invision when you intend to halt things such as querys etc.