From 2793a5cd9d3b48e4909c8212d9b8c070a1e571cb Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 23 Feb 2017 16:16:58 +0100 Subject: [PATCH] Trying something... --- markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markov.py b/markov.py index eed84f0..c102691 100755 --- a/markov.py +++ b/markov.py @@ -16,7 +16,7 @@ class Possy(markovify.NewlineText): def sanitizeText(text): split = text.split() try: - if "@" in (text[0], text[1]): + if text[0] == "@" or text[1] == "@": if split[1][0] not in string.ascii_lowercase: return sanitizeText(" ".join(split[1:])) if split[-1][0] == "@":