summaryrefslogtreecommitdiff
path: root/lib/rbot/irc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/irc.rb')
-rw-r--r--lib/rbot/irc.rb4
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