mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Fix NullReferenceException
This commit is contained in:
@@ -534,7 +534,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
|
||||
var content = NormalizeMentions(messageCreateEvent.Content);
|
||||
var mentionedUs = messageCreateEvent.Mentions.Any(x => x.ID == currentUserId)
|
||||
|| (!shouldNotAnswer && content.Split(' ', StringSplitOptions.RemoveEmptyEntries).First().Equals(ChatManager.CommonMention, StringComparison.OrdinalIgnoreCase));
|
||||
|| (!shouldNotAnswer && content.Split(' ').First().Equals(ChatManager.CommonMention, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (shouldNotAnswer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user