Make IrcConnection::sendCommand() queue the commands when inactive

This allows for example setting join commands before opening the
connection - it will be possible to open a connection & join a channel
without having to use signals and slots at all.