Merge pull request #471 from Cyberboss/FixIRCPostFix

Fixes IRC names not being lowercased before the check if they had no punctuation
This commit is contained in:
Jordan Brown
2018-01-10 23:19:56 -08:00
committed by GitHub
+2 -1
View File
@@ -168,7 +168,8 @@ namespace TGS.Server.ChatProviders
var splits = new List<string>(formattedMessage.Split(' '));
var test = splits[0];
if (test.Length > 1 && (test[test.Length - 1] == ':' || test[test.Length - 1] == ','))
test = test.Substring(0, test.Length - 1).ToLower();
test = test.Substring(0, test.Length - 1);
test = test.ToLower();
if (test != irc.Nickname.ToLower() && test != "!tgs")
return;