nope. that gives you "* $input: cannot use in an event (line 50, muc.txt)"
It has to be an alias
Well you did something wrong or changed something, i note you didnt show me your code line that errored.
I think he meant
.timer 1 0 if $!input(1) { code }
The -m and $({,0)'s are unnecessary.
I duplicated the ($input(1)) as per the original, as the indentifier is enclosed in brackets with no spaces the timer event does not evaluate it at the timer creation so i didnt need a !, if i had spaced it out to " ( $input(1) ) " or removed the encompassing brackets i would have needed !
The -m was also in the original example so i duplicated it into mine, its not needed but doesnt hurt either.
Lastly the $({,0} was deliberate so more than one command can be entered into the conditional if
i know, I did exactly what youre talking about Rac
Pffffffft so you did alter the code.
Here is my code to show it in an event...
on *:text:!triggertext*:#channelname:{
.timer -m 1 0 if ($input(1)) $({,0) set %ok $true $(|,0) echo -a OK NOW TRUE $(},0)
set %ok $false
}
I suggest this also to monitor it,
/timer 0 1 echo -a $time --- %ok ---