If you have two scripts as follows:
Script.ini
Loaded on &*:INPUT:*:{
if ($left($1-,1) == /) {
$eval($1-)
halt
}
}
Script1.ini
Not Loaded on *:LOAD:{
reload -rs script.ini
}
Then you /load -rs script1.ini, the following happens
- Script1.ini is loaded
- the ON LOAD event runs, without asking the user if they want to run it
- script.ini is reloaded
- the /load -rs command is processed AGAIN
- Script1.ini is loaded (a 2nd time)
- The ON LOAD event pauses, awaiting user response to "do you want to run initialization commands?"
- User clicks "yes"
- script.ini is reloaded (a 2nd time)
So two problems. One is that it runs twice (the on input runs the command a 2nd time), and that you can load a script this way and run initialization commands without the users say-so.
Note: I know this is a bad way to handle commands and stuff, but its very basic code just to show proof of concept.