]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
nickrecover plugin: help
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 30 Jul 2008 20:44:50 +0000 (22:44 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 30 Jul 2008 20:45:06 +0000 (22:45 +0200)
data/rbot/plugins/nickrecover.rb

index b6d8e61e10e13cbfe2e8667e7d7673c139fb7481..e6e56b8754bddd4611d65a38ea15c5393221c57e 100644 (file)
@@ -21,7 +21,15 @@ class NickRecoverPlugin < Plugin
         bot.plugin['nickrecover'].stop_recovery
       end
     end, :requires_restart => false,
-    :desc => _("Time in seconds to wait between attempts to recover the nick"))
+    :desc => _("Time in seconds to wait between attempts to recover the nick. set to 0 to disable nick recovery."))
+
+  def help(plugin,topic="")
+    [
+      _("the nickrecover plugin takes care of recovering the bot nick by trying to change nick until it succeeds."),
+      _("the plugin waits irc.nick_retry seconds between attempts."),
+      _("set irc.nick_retry to 0 to disable it.")
+    ].join(' ')
+  end
 
   def enabled?
     @bot.config['irc.nick_retry'] > 0