Patch for chat function not working

All the other functions that use chat weren't working either.