mIRC Home    About    Download    Register    News    Help

Print Thread
#108518 20/01/05 06:31 AM
Joined: May 2003
Posts: 13
R
rhkenji Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: May 2003
Posts: 13
return when was the last time someone actually typed something.. or

$chan().idle - last talked
$chan().event - last time event happened (join,part,quit)

#108519 20/01/05 06:49 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
There is $nick().idle. See /help $nick. I don't believe there is one for events.

Regards,


Mentality/Chris
#108520 21/01/05 05:54 PM
Joined: May 2003
Posts: 13
R
rhkenji Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: May 2003
Posts: 13
no, thats for users.. im refering to channels.. example.. the last time someone actualy talked in the channel was 2 minutes ago.. and since then,, no one typed something... but events are happening (parts and quits) BUT NO TALKING.. the value $chan(#channel).idle should return 120... $chan(#channel).lastevent should return how may seconds have passed since the last event occured

#108521 21/01/05 11:28 PM
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
maybe you could use the timestamp and the help of $line wink

Normally the timestamp is only the first word in the line wink

$gettok($line(#,$line(#,0)),1,32) -> you could convert this with $ctime
then use $calc($ctime - $ctime($gettok(...))) - maybe this will help you


one step closer to world domination

Link Copied to Clipboard