mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +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:
parent
c43a97395a
commit
57dc7d20b6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user