Chat system fixes

Fixed bugs in chat system, fixed users online misreporting, removed
debug alerts