combining two aliases; the use of /scon - 27/12/08 05:09 PM
Right now I have this...
I was wondering if I can insert the local alias into the global one.
I'm not sure how to use a multi-line script after a /scon command, so I settled for calling an alias each time. Of course it works as it is, but one has to wonder.
Also, I know I can run the timer continously after 24*60*60 seconds, but this is (imo) more accurate and maybe less resource intensive.
Code:
;========================================================================================== ;====== An alias called by a timer to echo the date to all channels after midnight ======== ;========================================================================================== alias datestampchans { var %scon = 1 while ($scon(%scon)) { scon %scon datestampchans2 inc %scon } .timerdatestamp -o 00:00 1 1 datestampchans } alias -l datestampchans2 { var %chan = 1 while ($chan(%chan)) { echo -gt $v1 ---- Date switching to $date ---- inc %chan } } ;==========================================================================================
I was wondering if I can insert the local alias into the global one.
I'm not sure how to use a multi-line script after a /scon command, so I settled for calling an alias each time. Of course it works as it is, but one has to wonder.
Also, I know I can run the timer continously after 24*60*60 seconds, but this is (imo) more accurate and maybe less resource intensive.