]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
hangman: expand %{site} in help
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 16 Dec 2009 22:38:01 +0000 (23:38 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 21 Dec 2009 09:30:45 +0000 (10:30 +0100)
data/rbot/plugins/games/hangman.rb

index 2a4bf33851419867f103ad36dcd47a1f83ee1165..8255ae84a21bf64b1702262553af48f59b73019f 100644 (file)
@@ -246,7 +246,7 @@ class HangmanPlugin < Plugin
     when "play"
       return [_("hangman play on <channel> with word <word> => use in private chat with the bot to start a game with custom word\n"),
               _("hangman play random [with [max|min] length [<|>|== <length>]] => hangman with a random word from %{site}\n"),
-              _("hangman play with wordlist <wordlist> => hangman with random word from <wordlist>")].join
+              _("hangman play with wordlist <wordlist> => hangman with random word from <wordlist>")].join % { :site => RandomWord::SITE }
     when "stop"
       return _("hangman stop => quits the current game")
     when "define"