On *:TEXT:*:#:{
lol #
}
alias lol {
timer 1 1 msg $1 lol
}
Keep in mind that this code works for 99% of all channel combinations on most networks, and that the script DOESN'T work as expected if it is ran from a channel that starts '#$'
So if I had this loaded on my mIRC, it would work correctly in every channel until I joined say "#$address", and someone tried to use the script.
I agree that the way the timer executes things can cause problems, but this is more to do with the behaviour of "#$alias" which shouldn't be evaluated in this manner if passed in this way. I believe that is only valid syntax because of the "/j /join #$1-" oddity.
I found that $!eval( $chan ,0) worked properly in my tests.