mIRC Homepage
Posted By: DBN Idle time in an ON TEXT event - 12/09/13 01:21 AM
In an ON TEXT or similar chat event, $chan($chan).idle always returns 0 even if the event has the ^ prefix. It would be nice if there was a way to get the idle time prior to the event occurring either by making $chan($chan).idle work or by adding a new identifier for those events.
Posted By: Iire Re: Idle time in an ON TEXT event - 15/09/13 09:17 AM
So, I've taken this as a challenge and came up with this. =P

I believe the reason that $chan(#).idle doesn't work in the on TEXT/ACTION events is that it is reset whenever there is a message or action in the channel; the ^ catches the event before the text is printed to your mIRC, but not before the text is actually sent/recieved, which, ultimately, is probably why it makes no difference with this identifier.

I do agree that it would be nice to see this functionality built in...
© mIRC Discussion Forums