summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-01 00:13:30 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-01 00:13:30 +0000
commit46b347e5b2e381321d1626dd8ab5c6478bec85b7 (patch)
tree11788fb6dcc53c3cd422b7b6be75ad08f3bd2174 /lib
parentabce7a8fc036e849ee20f386b003b0d93b97fead (diff)
Some stupid fixes
Diffstat (limited to 'lib')
-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