def dispatch(request)
      request.each_network do |network, channels|
        connection = connection_to(network)
        next if connection.nil?

        channels.each do |channel|
          message = request.to_message_for channel
          connection.enqueue message
        end
      end
    end
def dispatch(request)
      request.each_network do |network, channels|
        connection = connection_to(network)
        next if connection.nil?

        channels.each do |channel|
          message = request.to_message_for channel
          connection.enqueue message
        end
      end
    end
Creates a new IRC client.

 @param core [Core] the bot this client belongs to
 Dispatches a new request.

 @param request [Request] the request to dispatch