Changeset 66a33c3f8adaf0ebcd3c72298c6ad07c0561dc90

Show
Ignore:
Timestamp:
02/25/10 12:06:38 (5 months ago)
Author:
Giuseppe Bilotta <giuseppe.bilotta@…>
Children:
7d2f231d66e125428c7c9a72588ecae93a11f987
Parents:
4c9408181e395b7dcb7fd95a991b9073088f662c
git-author:
Raine Virta <rane@kapsi.fi> 1266795145 +0200
git-committer:
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1267088798 +0100
Message:

reaction: reverse permission check

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • data/rbot/plugins/reaction.rb

    ra9565be r66a33c3  
    344344    else 
    345345      found = reaction.add_reply(reply, pct, m.sourcenick, Time.now, m.channel) 
    346       if can_add?(m, found) 
     346      unless can_add?(m, found) 
    347347        m.reply _("Sorry, you're not allowed to add %{act} replies here") % { 
    348348          :act => found.act