diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-01 00:13:30 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-01 00:13:30 +0000 |
commit | 46b347e5b2e381321d1626dd8ab5c6478bec85b7 (patch) | |
tree | 11788fb6dcc53c3cd422b7b6be75ad08f3bd2174 /lib | |
parent | abce7a8fc036e849ee20f386b003b0d93b97fead (diff) |
Some stupid fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/irc.rb | 6 |
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
|