From 7b35acadbd3726d46db8a691036217c336b11058 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Sat, 13 Jun 2015 19:49:11 +0200 Subject: [PATCH] introduce reload alias for rescan --- lib/rbot/core/config.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb index 1c0263ec..43d08829 100644 --- a/lib/rbot/core/config.rb +++ b/lib/rbot/core/config.rb @@ -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 [] => reload specified or all botmodules and static facts") + when "reload" + _("reload [] => 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", -- 2.39.2