you want to use the function chatoffline