support/ruby/collins-notify/lib/collins_notify/adapter/helper/carried-pigeon.rb
# Send an IRC command to a socket, second arg can be one of :log or :none
# :log - log the response and get it
# :none - do nothing
Send an IRC command to a socket, second arg can be one of :log or :none
:log - log the response and get it
:none - do nothing
Send an IRC command to a socket second arg can be one of : log or : none : log - log the response and get it : none - do nothing
def sendln cmd, log_or_get = :none
    logger.trace "IRC command : #{cmd}"
    r = socket.puts cmd
    case log_or_get
    when :log
      log_response
    else
      r
    end
  end
def sendln cmd , log_or_get = :none logger . trace "IRC command : #{cmd}" r = socket . puts cmd case log_or_get when :log log_response else r end end
Send an IRC command to a socket, second arg can be one of :log or :none
:log - log the response and get it
:none - do nothing
Send an IRC command to a socket second arg can be one of : log or : none : log - log the response and get it : none - do nothing
cmd
log_or_get