]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
hangman plugin: update a couple of messages
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 18 Jul 2010 21:16:33 +0000 (23:16 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 18 Jul 2010 21:16:33 +0000 (23:16 +0200)
It's 'hangman define' now, and we should only use one prefix in the
example command

data/rbot/plugins/games/hangman.rb

index 535d1990ed4e1634a8b8855b55d3ed507183f22e..5cef596ee9f594730677da870f52fef03ddb6307 100644 (file)
@@ -248,7 +248,7 @@ class HangmanPlugin < Plugin
     when "stop"
       return _("hangman stop => quits the current game")
     when "define"
-      return _("define => seeks a definition for the previous answer using google")
+      return _("hangman define => seeks a definition for the previous answer using google")
     else
       return _("hangman game plugin - topics: play, stop, define")
     end
@@ -393,8 +393,8 @@ class HangmanPlugin < Plugin
         }, :nick => true
 
         if rand(5).zero?
-          m.reply _("wondering what that means? try ´%{prefix}define´") % {
-            :prefix => @bot.config['core.address_prefix']
+          m.reply _("wondering what that means? try ´%{prefix}hangman define´") % {
+            :prefix => @bot.config['core.address_prefix'].first
           }
         end