How can I use on text $date on mirc?
I am trying to do something like this.
on *:text:$(* %date *):#: {
var %date = $date(yy-mm-dd)
if ($nick == user) {
do something
}
}
You can encapsulate the text to listen to in $()
to evaluate it before matching it to the incoming message:
on *:TEXT:$($date(yy-mm-dd)):#:{
msg $chan That's today!
}