mIRC Home    About    Download    Register    News    Help

Print Thread
on *:load:*:{ #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
Re: on *:load:*:{ #90528 15/07/04 06:15 AM
Joined: Apr 2004
Posts: 66
C
Cyrex Offline
Babel fish
Offline
Babel fish
C
Joined: Apr 2004
Posts: 66
I agree.

Re: on *:load:*:{ #90529 15/07/04 11:47 AM
Joined: Nov 2003
Posts: 228
S
Seifer Offline
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.

Re: on *:load:*:{ #90530 15/07/04 12:39 PM
Joined: Oct 2003
Posts: 42
V
Voice_of_Power Offline
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

Re: on *:load:*:{ #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
Re: on *:load:*:{ #90532 16/07/04 02:28 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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
Re: on *:load:*:{ #90533 17/07/04 11:27 PM
Joined: Jul 2004
Posts: 19
S
Securix Offline
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