From
xqtr@21:1/126 to
dream master on Thursday, September 22, 2016 09:22:00
The only solution, from inside the script, to know if a user is not online,
is to make the script to do some "logging"... what i mean... Every time a
user makes a move, press a key etc. record that inside a variable/record, for example store the time of his last move. Now, make the script to check this variable with the current time. If the time between those two vars is big,
ex: 30min or bigger, then perhaps the user is offline and you should update
the user database. You can also make an infinite loop, which will countdown
an interval and if the user doesn't make any moves in this time,
automatically the script exits and saves his online status.
I am not quite sure, what you want to do and how, but i hope i helped :)
--- Mystic BBS v1.12 A31 (Linux)
* Origin: Twinkle BBS (21:1/126)