diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-16 21:07:03 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-16 21:07:03 +0000 |
commit | 8610d6aef936b05126fc9b38af7233d6493d6627 (patch) | |
tree | 6137ded14ce147fa5a53627a5117a0390ef25acb /data | |
parent | 60ee4632925ad75c7d5de2b99ec0267d5a9496bb (diff) |
wheelfortune: fix 'wof cancel' command
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/games/wheelfortune.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index febf70e3..0aebf55d 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -545,7 +545,7 @@ class WheelOfFortune < Plugin return end # is the botuser the manager or allowed to cancel someone else's game? - if m.botuser == game.manager or m.botuser.permit?('wheelfortune::manage::other::cancel') + if m.botuser == @games[ch].manager or m.botuser.permit?('wheelfortune::manage::other::cancel') do_cancel(ch) else m.reply _("you can't cancel the current game") |