relay: fix CTCP handling of commands/replies

* PRIVMSGs are commands, NOTICEs are replies
* deal with them in this way
* fixes #2