Fix for Ignore Private ignoring NPCs

Ignore Private message setting was ignoring NPC chat in the NPC window.
This commit is contained in:
Jeffrey 2013-01-10 07:46:32 -06:00
parent c43a97395a
commit 57dc7d20b6
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ function onTalk(name, level, mode, message, channelId, creaturePos)
speaktype = SpeakTypes[mode]
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
name ~= g_game.getLocalPlayer():getName() then
return