summaryrefslogtreecommitdiff
path: root/lib/rbot
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 /lib/rbot
parentc7eab99603c757ac4202e809f5c5923fa23e65ff (diff)
Fix exception when a QUITting user was not in the first channel of the list of channels
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/rfc2812.rb1
1 files changed, 1 insertions, 0 deletions
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])