diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:35:28 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:35:28 +0000 |
commit | c4502412f30f69c1ffa053b160e01d3974b338aa (patch) | |
tree | 62151a741f731eb98fcc0ec5e272de7b9d004427 | |
parent | be2371b5ae7b980eb7fee1b51bbc3c93a122b686 (diff) |
New Irc Framework: channel add_user was adding users indiscriminately when silent
-rw-r--r-- | lib/rbot/irc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 59abceec..852cc6df 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -1289,8 +1289,8 @@ module Irc #
def add_user(user, opts={})
silent = opts.fetch(:silent, false)
- if has_user?(user) && !silent
- warn "Trying to add user #{user} to channel #{self} again"
+ if has_user?(user)
+ warn "Trying to add user #{user} to channel #{self} again" unless silent
else
@users << user.to_irc_user(server_and_casemap)
end
|