From 25dce328a87fcf2af9fa0e1c2da7ed30b7def441 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 6 Dec 2007 15:16:21 +0000 Subject: wheelfortune: it's chan, not p[:chan] --- data/rbot/plugins/games/wheelfortune.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index 57d54915..c7fb7ab4 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -173,7 +173,7 @@ class WheelOfFortune < Plugin m.reply _("you must specify a channel") return end - ch = p[:chan].irc_downcase(m.server.casemap).intern + ch = chan.irc_downcase(m.server.casemap).intern if @games.key?(ch) m.reply _("there's already a Wheel-of-Fortune game on %{chan}, managed by %{who}") % { -- cgit v1.2.3