The syntax to the /unload command is misleading:
/unload <-a|-nrs> <filename>
Unloads the specified alias or remote script file.
/unload -a aliases.ini unloads the alias.ini file
/unload -rs script.ini unloads the script.ini file
The -n switch prevents a script from having the on unload event triggered.
However attempting to /unload -nrs filename.mrc produces:
* /unload: invalid switch
The issue seems to be mIRC only allowing the command to proceed if the flags BEGIN with ns or a.
I'm sure this is general knowledge to those helping people remove suspicious files, however it came as a rude shock when I had to look up the command to verify the -n switch and have it not work. Perhaps the help file can be modified or the paramaters made a bit more flexible?
Also, and again a minor niggle, could some changes to the script manager be made so no 'default' remote file exists (script.ini and then script1.ini if it is /unload'ed), as this means extra checks to verify $script(0) == 1 is really $script(0) == 0.
Thanks for listening