def check_away_status
    # for now we pretty much randomly pick an away status if multiple are set
    # by clients
    if @away.any? { |k,v| !v }
      # we have a client who isn't away
      send_msg("AWAY") if @server_away
      @server_away = nil
    else
      message = @away.values.first || "Away"
      send_msg("AWAY :#{message}") if @server_away != message
      @server_away = message
    end
  end
def check_away_status
    # for now we pretty much randomly pick an away status if multiple are set
    # by clients
    if @away.any? { |k,v| !v }
      # we have a client who isn't away
      send_msg("AWAY") if @server_away
      @server_away = nil
    else
      message = @away.values.first || "Away"
      send_msg("AWAY :#{message}") if @server_away != message
      @server_away = message
    end
  end
Away Statuses