I'm trying to automatically close private message windows when certain text appears. I have a lot of invite bots that send me messages and it ends up cluttering my list of windows.

I tried putting this in the remote file but it doesn't seem to work:

on $*:TEXT:/.*Inviting\syou\sto.*/:?:{ window -c $nick }

Do I need to restart mIRC to get remote changes to work? I thought it would take effect on save?