I am hacking about some code for an event handler and rather than handling the event straight away, as it does now, I'd like to execute large parts of it after a delay.

So I am using something like:

timername 1 60 aliasnametobeexecuted

However, because the code was created to run normally, without delays, it makes extensive use of $nick and $chan and so on ... so will not work with the timer delay, since it blanks out $nick $chan etc.

Is there any way of setting the values of $nick and $chan so they are preserved across timer events?

So in other words I'd like to be able to do:

Code:
alias timerstart{
  timerX 1 60 hello
}

alias hello(
  msg $chan Hi there $nick!
  ; ... and lots of other code that uses $chan and $nick
}


and not

Code:
alias timerstart{
  timerX 1 60 hello $chan $nick
}

alias hello(
  msg $1 Hi there $2!
}


if at all possible

Last edited by davethejackal; 12/03/14 11:58 AM.