Merge pull request #1005 from diath/message_prefixes

Don't apply message prefixes to messages with empty name
This commit is contained in:
Samuel Gros 2019-01-06 14:32:59 +01:00 committed by GitHub
commit a6c7269f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -978,7 +978,7 @@ function navigateMessageHistory(step)
end
function applyMessagePrefixies(name, level, message)
if name then
if name and #name > 0 then
if modules.client_options.getOption('showLevelsInConsole') and level > 0 then
message = name .. ' [' .. level .. ']: ' .. message
else