From 46b347e5b2e381321d1626dd8ab5c6478bec85b7 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 1 Aug 2006 00:13:30 +0000 Subject: Some stupid fixes --- lib/rbot/irc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index d5621b0f..6877af65 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -505,7 +505,7 @@ module Irc end def reset(val) - @list.delete_if(val) if @list.include?(val) + @list.delete(val) end end @@ -540,7 +540,7 @@ module Irc end def reset(val) - @list.delete_if { |x| x == val } + @list.delete(val) end end @@ -634,10 +634,10 @@ module Irc # Removes a user from the channel # def delete_user(user) - @users.delete_if { |x| x == user } @mode.each { |sym, mode| mode.reset(user) if mode.class <= ChannelUserMode } + @users.delete(user) end # The channel prefix -- cgit v1.2.3