It can be modified like you have shown, but saying that it must be changed is ridiculous. If you do a /join #channel when you are already on that channel, you simply force that channel to become the active channel.

Additionally, the op was enquiring as to why the ON NOTICE event was not triggering, which is what I answered.

Out of curiosity, did you try your modification?
I tried the following
Code:
//var %chans = #DragonsDen,#Help,#X-Staff,#mirc_scripting | echo -a $iif($me ison %chans,$v2,$v1)
on a network where I was on all of the channels specified, and it returns the $v1 whether I'm on all of the channels or not, thus your modification that must be made, by my testing, does not work, which, imo, is worse than having channels re-joined while already on the channel.

Last edited by RusselB; 25/06/09 12:24 PM.