Bot can send messages, read from connection, but not receive messages

Yeah, I use PRIVMSG to send. That works okay; the message shows up fine on the website. I just included the minimum code to reproduce the behaviour.

Or lack of it, as the case may be.