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