Display version number of plugins in the console (#173)

* Display version number with plugins
This commit is contained in:
Golisopod-User
2022-02-07 00:31:42 +05:30
committed by GitHub
parent 4561cc66bf
commit e6c877fe06

View File

@@ -710,7 +710,7 @@ module PluginManager
# try to run the code
begin
eval(code, TOPLEVEL_BINDING, fname)
Console.echoln_li "Loaded plugin: '#{name}'" if !echoed_plugins.include?(name)
Console.echoln_li "Loaded plugin: '#{name}' (ver. #{meta[:version]})" if !echoed_plugins.include?(name)
echoed_plugins.push(name)
rescue Exception # format error message to display
self.pluginErrorMsg(name, sname)