]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
reaction: reverse permission check
authorRaine Virta <rane@kapsi.fi>
Sun, 21 Feb 2010 23:32:25 +0000 (01:32 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 25 Feb 2010 09:06:38 +0000 (10:06 +0100)
data/rbot/plugins/reaction.rb

index 0de9b847bb2213cd1553e86c1b8c27dcf21bcdf9..dd0b3de0ea624b8d28d38d56f0ce66e2ac76247e 100644 (file)
@@ -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
         }