; Without $()
on *:text:$me:*:{
; This will only match the literal text "$me", since by default mIRC does not evaluate identifiers in the event definition.
}
; With $()
on *:text:$($me):*:{
; This will match whatever my current nickname is thanks to the use of $()
}
; Example usage in the window section
on *:text:*:$($mychannels):{
; This will match any text in the windows returned by an alias called mychannels
}
alias mychannels {
; This returns values so that the text will match in #channel #channel2 and any query window
return #channel,#channel2,?
}