From f13a4901e82fd533815175b95600652ac427d2bd Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 10 Aug 2006 12:03:28 +0000 Subject: Fix exception when a QUITting user was not in the first channel of the list of channels --- lib/rbot/rfc2812.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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]) -- cgit v1.2.3