summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/rbot/rfc2812.rb1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b2954b46..1919ed9b 100644
--- 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
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb
index 5622dcf8..e56c76bc 100644
--- a/lib/rbot/rfc2812.rb
+++ b/lib/rbot/rfc2812.rb
@@ -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])