on 1:join:#blah: { enable #test }
#test on
alias test echo -a TEST GROUP ON
#test end
alias test echo -a TEST GROUP OFF
you can amagine a GROUP is like a script file, if its OFF (disabled) its unloaded, if its ON (enabled) its loaded.
* example assumes you are in no channels on a server.
/test
TEST GROUP OFF
/join #blah
/test
TEST GROUP ON
Of course you dont just replace alias this way (or maybe at all), but rather you might have code thats only ment to be done for that channel, like
ON *:TEXT:*:#blah:{ some would say if has the channel in the on text then you dont need the group statment, others would say, good value! for freeing mirc from even having to do the channel name comparisions.
Of course GROUPS have nothing to do with channels, u used the on join so i related it to usage for a channel.