]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Fix exception when a QUITting user was not in the first channel of the list of channels
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 10 Aug 2006 12:03:28 +0000 (12:03 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 10 Aug 2006 12:03:28 +0000 (12:03 +0000)
ChangeLog
lib/rbot/rfc2812.rb

index b2954b46fc74acd82a9056e9d343c6a675e4d38b..1919ed9b464b8e9aee3b783c40a85324e7f5b7cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-08-10  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Bug in new IRC framework: the list of channels a quitting user was
+       on was not built correctly, causing an exception when the user was not
+       in the first channel in the list of channels.
+
 2006-08-07  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
 
        * Add kick method to kernel: plugins can now use
index 5622dcf8e0ac84e18a721173e3c4e4e70188faa4..e56c76bc6b0d80da54ad53f335c5b704c89ac27b 100644 (file)
@@ -1140,6 +1140,7 @@ module Irc
         data[:message] = argv[0]
         data[:was_on] = @server.channels.inject(ChannelList.new) { |list, ch|
           list << ch if ch.users.include?(data[:source])
+         list
         }
 
         @server.delete_user(data[:source])