summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/irc.rb6
1 files changed, 3 insertions, 3 deletions
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