From: Raine Virta Date: Sun, 21 Feb 2010 23:32:25 +0000 (+0200) Subject: reaction: reverse permission check X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=66a33c3f8adaf0ebcd3c72298c6ad07c0561dc90;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git reaction: reverse permission check --- diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb index 0de9b847..dd0b3de0 100644 --- a/data/rbot/plugins/reaction.rb +++ b/data/rbot/plugins/reaction.rb @@ -343,7 +343,7 @@ class ReactionPlugin < Plugin end else found = reaction.add_reply(reply, pct, m.sourcenick, Time.now, m.channel) - if can_add?(m, found) + unless can_add?(m, found) m.reply _("Sorry, you're not allowed to add %{act} replies here") % { :act => found.act }