diff --git a/modules/markov.py b/modules/markov.py index d88c2d37..f2c3b6c4 100644 --- a/modules/markov.py +++ b/modules/markov.py @@ -53,6 +53,9 @@ class Module(ModuleManager.BaseModule): return lambda: self._create(channel_id, line) def _create(self, channel_id, line): + if utils.http.REGEX_URL.search(line): + return + words = list(filter(None, line.split(" "))) words = [word.lower() for word in words] words_n = len(words)