looks what i wanted but im confused...
if you call alias in middle of ON event, how will mirc know it inside ON start and that it should "restart" ?
mirc doesnt "restart" when an on start event occurs, its already started, and now it well run your code.
The alias is just what code you want to run.
on *:start:{
echo ... 1 ...
blah
echo ... 2 ...
}
on *:start:{ fred }
alias fred {
echo ... 1 ...
blah
echo ... 2 ...
}
thos two are essentially the same thing, except the second one you can also call /FRED from the command line
Only thing to watch for when you dp thinsg like that, are in other events such as ON TEXT if your using things like $nick, if you call it from the command line $nick holds no value
I get around that by doing this
on *:TEXT:*:#:{ text.event $nick $chan $1- }
alias text.event {
var %nick = $1
var %chan = $2
tokenize 32 $3-
echo -a $time < %nick in %chan > $1-
}
if i call it from a command line (for testing etc) i go
/TEXT.EVENT DaveC #blah my text here