From f13a4901e82fd533815175b95600652ac427d2bd Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 10 Aug 2006 12:03:28 +0000 Subject: [PATCH] Fix exception when a QUITting user was not in the first channel of the list of channels --- ChangeLog | 6 ++++++ lib/rbot/rfc2812.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2954b46..1919ed9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-08-10 Giuseppe Bilotta + + * 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 * 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]) -- 2.39.2