Browse Source

Fixed issue where a highlight would be triggered if a word contained a nick.

tags/3.1.0
Teknikode 4 years ago
parent
commit
1136f0814f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Modules/Spam Control/Spam_Control.cs

+ 1
- 1
Modules/Spam Control/Spam_Control.cs View File

@@ -129,7 +129,7 @@ namespace Combot.Modules.Plugins
Channel channel = Bot.IRC.Channels.Find(chan => chan.Name == message.Channel);
if (channel != null)
{
List<string> foundNicks = splitMessage.FindAll(msg => channel.Nicks.Exists(nick => msg.Contains(nick.Nickname)));
List<string> foundNicks = splitMessage.FindAll(msg => channel.Nicks.Exists(nick => msg.Equals(nick.Nickname, StringComparison.InvariantCultureIgnoreCase)));
if (foundNicks.Any())
{
if (!SpamHighlightList.Exists(msg => msg.Channel == message.Channel && msg.Nick == message.Sender.Nickname))

Loading…
Cancel
Save