ldilley / rubircd

:speech_balloon: An IRC server written in Ruby
http://www.dilley.me/rubircd
GNU General Public License v3.0
22 stars 4 forks source link

opers.yml parse bug when opers is empty #26

Closed ldilley closed 9 years ago

ldilley commented 9 years ago

Check for nil in options.rb for the admins and opers during parsing since these may be blank. The condition occurs when admins: or opers: exists/is not commented and there are no opers or admin entries in opers.yml.

NoMethodError: undefined method `each' for nil:NilClass
   parse at /apps/rubircd/options.rb:293
    each at org/jruby/RubyHash.java:1341
   parse at /apps/rubircd/options.rb:279
  (root) at rubircd.rb:43