summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-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
}