]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
hangmang plugin: rename 'define' to 'hangman define'
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 2 Jul 2010 22:09:08 +0000 (00:09 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 2 Jul 2010 23:14:04 +0000 (01:14 +0200)
data/rbot/plugins/games/hangman.rb

index 8255ae84a21bf64b1702262553af48f59b73019f..535d1990ed4e1634a8b8855b55d3ed507183f22e 100644 (file)
@@ -241,8 +241,6 @@ class HangmanPlugin < Plugin
 
   def help(plugin, topic="")
     case topic
-    when ""
-      return _("hangman game plugin - topics: play, stop")
     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"),
@@ -251,6 +249,8 @@ class HangmanPlugin < Plugin
       return _("hangman stop => quits the current game")
     when "define"
       return _("define => seeks a definition for the previous answer using google")
+    else
+      return _("hangman game plugin - topics: play, stop, define")
     end
   end
 
@@ -496,4 +496,4 @@ plugin.map "hangman stop", :action => 'stop'
 
 plugin.map "hangman score [:nick]", :action => 'score'
 plugin.map "hangman stats", :action => 'stats'
-plugin.map "define", :action => 'define'
+plugin.map "hangman define", :action => 'define'