diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index de1c9ef4..079ec9c4 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -472,7 +472,7 @@ function onTalk(name, level, mode, message, channelId, creaturePos) if speaktype.private then addPrivateText(composedMessage, speaktype, name, false, name) - if Options.getOption('showPrivateMessagesOnScreen') and speaktype.speakType ~= SpeakPrivateNpcToPlayer then + if Options.getOption('showPrivateMessagesOnScreen') and speaktype ~= SpeakTypesSettings.privateNpcToPlayer then modules.game_textmessage.displayPrivateMessage(name .. ':\n' .. message) end else