]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
introduce reload alias for rescan
authorMatthias Hecker <apoc@geekosphere.org>
Sat, 13 Jun 2015 17:49:11 +0000 (19:49 +0200)
committerMatthias Hecker <apoc@geekosphere.org>
Sat, 13 Jun 2015 17:49:11 +0000 (19:49 +0200)
lib/rbot/core/config.rb

index 1c0263ece81e147c7d4e6a99207c681dae8494d1..43d08829884a5606c64206129f5b36494f7c6061 100644 (file)
@@ -263,11 +263,13 @@ class ConfigModule < CoreBotModule
     when "save"
       _("save => save current dynamic data and configuration")
     when "rescan"
-      _("rescan => reload modules and static facts")
+      _("rescan [<botmodule>] => reload specified or all botmodules and static facts")
+    when "reload"
+      _("reload [<botmodule>] => reload specified or all botmodules and static facts")
     when "version"
       _("version => describes software version")
     else
-      _("config-related tasks: config, save, rescan, version, nick, status")
+      _("config-related tasks: config, save, rescan(/reload), version, nick, status")
     end
   end
 
@@ -299,6 +301,8 @@ conf.map "save",
   :action => 'bot_save'
 conf.map "rescan [:botmodule]",
   :action => 'bot_rescan'
+conf.map "reload [:botmodule]",
+  :action => 'bot_rescan'
 conf.map "nick :nick",
   :action => 'bot_nick'
 conf.map "status",