summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-16 21:07:03 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-16 21:07:03 +0000
commit8610d6aef936b05126fc9b38af7233d6493d6627 (patch)
tree6137ded14ce147fa5a53627a5117a0390ef25acb
parent60ee4632925ad75c7d5de2b99ec0267d5a9496bb (diff)
wheelfortune: fix 'wof cancel' command
-rw-r--r--data/rbot/plugins/games/wheelfortune.rb2
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")