Beispiel #1
0
        private bool isFactoidRemoveRequest(string message, string nick)
        {
            string noMention = HandlerUtils.removeMention(message, nick);

            return(FactoidRemoveExpression.IsMatch(noMention) && HandlerUtils.addressedToMe(message, nick));
        }
Beispiel #2
0
        private bool isTellMessage(string message, string nickName)
        {
            string normalizedMessage = HandlerUtils.removeMention(message, nickName);

            return(HandlerUtils.addressedToMe(message, nickName) && TellExpression.IsMatch(normalizedMessage));
        }