Fix motd reply code