diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/rbot/rfc2812.rb | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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]) |