]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
wheelfortune: it's chan, not p[:chan]
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 6 Dec 2007 15:16:21 +0000 (15:16 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 6 Dec 2007 15:16:21 +0000 (15:16 +0000)
data/rbot/plugins/games/wheelfortune.rb

index 57d5491559d8d12baf632549da219d245d05b019..c7fb7ab4edeedad440a6f40152321614fc2ea52f 100644 (file)
@@ -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}") % {