summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2010-02-22 01:32:25 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-02-25 10:06:38 +0100
commit66a33c3f8adaf0ebcd3c72298c6ad07c0561dc90 (patch)
tree67184d1f35521d8bca8c92629fa13cd88bded148 /data/rbot/plugins
parent4c9408181e395b7dcb7fd95a991b9073088f662c (diff)
reaction: reverse permission check
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/reaction.rb2
1 files changed, 1 insertions, 1 deletions
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
}