Esempio n. 1
0
        //checks inputs and replaces items that exist in the list
        public string[] CheckInput(string unixTime, string userId, string messageContent)
        {
            var checkedMessageContent = messageContent;

            foreach (var blackItem in blacklistedValues)
            {
                if (checkedMessageContent.Contains(blackItem))
                {
                    checkedMessageContent = TextFunctions.ReplaceWords(checkedMessageContent, blackItem, replacementMessage);
                }
            }

            return(new string[] { unixTime, userId, checkedMessageContent });
        }