mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2013
Posts: 1
DBN Offline OP
Mostly harmless
OP Offline
Mostly harmless
Joined: Sep 2013
Posts: 1
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.

Last edited by DBN; 12/09/13 01:22 AM.
Joined: Aug 2013
Posts: 81
I
Babel fish
Offline
Babel fish
I
Joined: Aug 2013
Posts: 81
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...


Link Copied to Clipboard