From 66a33c3f8adaf0ebcd3c72298c6ad07c0561dc90 Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Mon, 22 Feb 2010 01:32:25 +0200 Subject: reaction: reverse permission check --- data/rbot/plugins/reaction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot') 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 } -- cgit v1.2.3