Fix broken chat sending

Untested, but should work