summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/markov.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index 7bcf7b41..17446f6d 100644
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -169,6 +169,7 @@ class MarkovPlugin < Plugin
return unless should_talk
word1, word2 = message.split(/\s+/)
+ return unless word1 and word2
line = generate_string(word1, word2)
return unless line
return if line == message