Thank you for your prompt reply.
I triggered it like this because I find this possibility easy to test.
menu channel {
timertest2:/timer $+ $nick 4 2 /echo $chan $nick
}
and the result looks like this.
* Timer 1 activated
* /echo: insufficient parameters
* /echo: insufficient parameters
* /echo: insufficient parameters
* /echo: insufficient parameters
* Timer 1 halted
so it's true that $nick is undefined.
I tried it now with the on:join event.
on *:join:*:{
timer $+ $nick 4 2 /echo $chan $nick
}
*** user1 has joined #Lobby
* Timer user1 activated
user1
user1
user1
user1
* Timer user1 halted
it works fine here. a useful information that $nick is not filled by menu.
I can live with that, I only need the function in the on:join and on:part events.
many thanks for the help.