easiest way without doing all the mfc chat server bs.
curl your proflie page e.g.:
http://profiles.myfreecams.com/Miss_Nina
Search for:
Online Example:
Code:
profileSate: {"number":0,"string":"Online"},
OfflineExample:
Code:
profileState: {"number":127,"string":"Offline"}
Try to ignore the number because, that value will change for AWAY/PVT/GRP.