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

on_nick() crash when user disconnects from network #28

Closed ldilley closed 9 years ago

ldilley commented 9 years ago

Condition causing the trace below: User "joe" joins channel and quits server. User "jim" then uses NICK to change own nick to "joe".

NoMethodError: undefined method `key_each' for {"#rubircd"=>""}:Hash
          on_nick at (eval):78
       initialize at (eval):24
             call at org/jruby/RubyProc.java:271
            parse at /apps/rubircd/commands.rb:42
        main_loop at /apps/rubircd/network.rb:393
             loop at org/jruby/RubyKernel.java:1507
        main_loop at /apps/rubircd/network.rb:378
  ssl_connections at /apps/rubircd/network.rb:140