So I've been developing a plugin for KRelay, and I don't understand why it won't work.
Code:
 private void OnText(Client client, Packet packet)
        {
            if (!NotifierConfig.Default.Enabled)
                return;
            TextPacket textPacket = (TextPacket)packet;
                foreach (string str in NotifierConfig.Default.Whitelist)
                {
                    if (textPacket.Text.ToLower().Contains(str.ToLower()))
                    {
                        foreach (string strblack in NotifierConfig.Default.Blacklist)
                        {
                            if (textPacket.Text.ToLower().Contains(strblack.ToLower()))
                            {
                            textPacket.Send = true;
                            }
                        }
                    client.SendToClient(PluginUtils.CreateNotification(client.ObjectId, str + " called!"));
                    }
                }
        }

What I want it to do:
When you get the text packet, search it for keywords(Dungeon Names/Whitelist). If it has keyword, search it again for the blacklist words. If it has blacklist words, do nothing. If it doesn't have blacklist words, create a notification that the dungeon was called.

When I try it ingame, the notification appears, but it appears even when I have a blacklist word.
Can anyone fix this?