it turns out that once a script is unloaded, you can't run /unload again or you will constantly get the '* /unload: no such file" error.

i never had to do this before, but now, any time i want to unload a script, i first have to test to see if it is loaded before i attempt to unload it.

the only way i've found to determine if a script is loaded is to edit the script, find a unique alias inside, like /example - then test it with: $isalias(example). if that comes back $true, only then can i safely run /unload.

what is that all about?

this test was never required before. you could run /unload a million times without one error.

even worse is the fact that the error message is totally incorrect: 'no such file' - which makes you think the file isn't even there. a better error message would be something like: 'no such script loaded'.

if this is not a bug and instead the way they want /unload to work, then you shouldn't have to dig through scripts trying to find an alias to test, they should give you a new idntifier such as $isloaded() --- or something.

and how would you go about testing $isalias() in a script that has no aliases at all (such as scripts that handle events and/or raws only)?

Last edited by sgt; 06/03/04 10:51 PM.