From 8610d6aef936b05126fc9b38af7233d6493d6627 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 16 Dec 2007 21:07:03 +0000 Subject: wheelfortune: fix 'wof cancel' command --- data/rbot/plugins/games/wheelfortune.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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") -- cgit v1.2.3