Method: Roma::Command::SystemCommandReceiver#ev_set_continuous_limit

Defined in:
lib/roma/command/sys_command_receiver.rb

#ev_set_continuous_limit(s) ⇒ Object



652
653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'lib/roma/command/sys_command_receiver.rb', line 652

def ev_set_continuous_limit(s)
  if s.length < 2
    return send_data("CLIENT_ERROR number of arguments (0 for 1)\r\n")
  end

  res = broadcast_cmd("rset_continuous_limit #{s[1]}\r\n")

  if Event::Handler.set_ccl(s[1])
    res[@stats.ap_str] = "STORED"
  else
    res[@stats.ap_str] = "NOT_STORED"
  end
  send_data("#{res}\r\n")
end