IRCMessage.as_command() and tests.

To be improved.