Fixed console message colouring breaking when loading a plugin whose name contains an apostrophe

This commit is contained in:
Maruno17
2022-05-21 19:20:35 +01:00
parent 98aeff01c5
commit a280fea093
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ module Console
# Text markup that turns text between them a certain color
def markup_colors
{
"`" => :cyan, '"' => :purple, "'" => :purple, "$" => :green, "~" => :red
"`" => :cyan, '"' => :purple, "==" => :purple, "$" => :green, "~" => :red
}
end

View File

@@ -651,7 +651,7 @@ module PluginManager
# try to run the code
begin
eval(code, TOPLEVEL_BINDING, fname)
Console.echoln_li "Loaded plugin: '#{name}' (ver. #{meta[:version]})" 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)