void HandleUnaddressed(string channel, string nick, string[] message) { if (RandomRespond(channel)) { EmitSentence(channel, message, nick); } if (Learning(channel) && !MarkovTools.FoulPlay(message, conf.MaxConsecutive, conf.MaxTotal)) { AbsorbSentence(channel, nick, message); } }
void HandleAddressed(string channel, string nick, string[] message) { if (!MarkovTools.FoulPlay(message, conf.MaxConsecutive, conf.MaxTotal)) { EmitSentence(channel, message, nick); AbsorbSentence(channel, nick, message); } else { irc.SendMessage(channel, "Foul play detected! Stop trying to teach me stupid things, {0}", nick); } }