mIRC Home    About    Download    Register    News    Help

Print Thread
#90527 15/07/04 05:42 AM
Joined: May 2004
Posts: 27
N
Nixor Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2004
Posts: 27
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...


---

Nixor's - http://xoniq.tk
#90528 15/07/04 06:15 AM
Joined: Apr 2004
Posts: 66
C
Babel fish
Offline
Babel fish
C
Joined: Apr 2004
Posts: 66
I agree.

#90529 15/07/04 11:47 AM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
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.

#90530 15/07/04 12:39 PM
Joined: Oct 2003
Posts: 42
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Oct 2003
Posts: 42
Just let each of those modules call an alias in the core script. wink

#90531 16/07/04 02:23 PM
Joined: May 2004
Posts: 27
N
Nixor Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2004
Posts: 27
yes i know, but the point is remove the ON LOAD event of all modules :P


---

Nixor's - http://xoniq.tk
#90532 16/07/04 02:28 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You could also remove incompatible scripts, example:

Code:
on *:load:*:{
  if (!$read(compatible.txt,w,$filename)) { unload -rs $filename }
}


New username: hixxy
#90533 17/07/04 11:27 PM
Joined: Jul 2004
Posts: 19
S
Pikka bird
Offline
Pikka bird
S
Joined: Jul 2004
Posts: 19
it's better to create a new event so as not to make older scripts not compatible with the new syntax of the event...


Thinking is the worst disease of the brain.

To reply by mail, remove "nospam-" in my adress

Link Copied to Clipboard