mIRC Home    About    Download    Register    News    Help

Print Thread
#235372 11/12/11 11:50 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I dont know if this is a bug so i post it here first, $duration($online) will not show the online time, tested in a clean mirc, and i get 3wks 5days 1hr 20mins 53secs, and it should return 0 when im not connected. Is it just med? any other way to get my online time?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I assume you first read the help file to figure out exactly what $online returns. In case you didn't:

Originally Posted By: mirc.hlp
$online
Returns the number of seconds elapsed in the Timer dialog.


It does not return your current connection's duration. It returns the cumulative duration for all connections since the timer dialog was last reset. For reference, mine is currently at 17823hrs 29mins 10seconds. No, my IRC connection is not 106 weeks old. This is a cumulative value until I manually reset it.

If you want connection time for your CURRENT connection use $uptime(server,1)


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thnx, problem solved :P


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard