mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
Fix for Ignore Private ignoring NPCs
Ignore Private message setting was ignoring NPC chat in the NPC window.
This commit is contained in:
@@ -612,7 +612,7 @@ function onTalk(name, level, mode, message, channelId, creaturePos)
|
|||||||
|
|
||||||
speaktype = SpeakTypes[mode]
|
speaktype = SpeakTypes[mode]
|
||||||
if ((mode == MessageModes.Yell and isIgnoringYelling()) or
|
if ((mode == MessageModes.Yell and isIgnoringYelling()) or
|
||||||
(speaktype.private and isIgnoringPrivate()) or
|
(speaktype.private and isIgnoringPrivate() and mode ~= MessageModes.NpcFrom) or
|
||||||
(isIgnored(name) or isIgnored(name:lower()))) and
|
(isIgnored(name) or isIgnored(name:lower()))) and
|
||||||
name ~= g_game.getLocalPlayer():getName() then
|
name ~= g_game.getLocalPlayer():getName() then
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user