mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user