summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-10 12:03:28 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-10 12:03:28 +0000
commitf13a4901e82fd533815175b95600652ac427d2bd (patch)
tree290825ca9b39c81b878b36da0b5e762f6726888c
parentc7eab99603c757ac4202e809f5c5923fa23e65ff (diff)
Fix exception when a QUITting user was not in the first channel of the list of channels
-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])