It's hard to understand your problem because a 'script' doesn't have those commands outside one of the ON-whatever events or inside an alias. Perhaps you have some commands loaded within mirc-options/connect/options/"Perform-on-connect", where something is configured either for all-networks or 1 specific network. The default location for such a thing is placing them in perform.ini