From c4502412f30f69c1ffa053b160e01d3974b338aa Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 22 Aug 2007 20:35:28 +0000 Subject: New Irc Framework: channel add_user was adding users indiscriminately when silent --- lib/rbot/irc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3