mIRC Homepage
Posted By: Nixor on *:load:*:{ - 15/07/04 05:42 AM
i think a load event for all files are good, bacause you can use:
on *:load:*:{
if (*.module iswm $filename) {
echo -a Module name: bla bla bla bla
}
}
its usefull for me because i dont have to add this evento to all modules on the script...
Posted By: Cyrex Re: on *:load:*:{ - 15/07/04 06:15 AM
I agree.
Posted By: Seifer Re: on *:load:*:{ - 15/07/04 11:47 AM
The purpose of the on LOAD event is to set variables, check for required files, etc. before the script is loaded to prevent errors in the script. A global load event would be good in notifying the user which files have been loaded, but I think it's better left the way it is.
Posted By: Voice_of_Power Re: on *:load:*:{ - 15/07/04 12:39 PM
Just let each of those modules call an alias in the core script. wink
Posted By: Nixor Re: on *:load:*:{ - 16/07/04 02:23 PM
yes i know, but the point is remove the ON LOAD event of all modules :P
Posted By: tidy_trax Re: on *:load:*:{ - 16/07/04 02:28 PM
You could also remove incompatible scripts, example:

Code:
on *:load:*:{
  if (!$read(compatible.txt,w,$filename)) { unload -rs $filename }
}
Posted By: Securix Re: on *:load:*:{ - 17/07/04 11:27 PM
it's better to create a new event so as not to make older scripts not compatible with the new syntax of the event...
© mIRC Discussion Forums