From bd68a53c74b1e8e9877af68743ca382fadf26d9b Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 28 Sep 2005 09:46:18 +0000 Subject: roll out that one change --- data/rbot/plugins/markov.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'data') diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index b0e84cb5..6c51af51 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -153,11 +153,6 @@ class MarkovPlugin < Plugin # in channel message, the kind we are interested in message = clean_str m.message - # we respond first. otherwise if we add this line to the db first, and - # it's fairly unique, there's a good chance we'll just parrot it back - # here. - random_markov(m, message) - wordlist = message.split(/\s+/) return unless wordlist.length > 2 @lastline = message @@ -167,6 +162,8 @@ class MarkovPlugin < Plugin word1, word2 = word2, word3 end @registry["#{word1}/#{word2}"] = [:nonword] + + random_markov(m, message) end end plugin = MarkovPlugin.new -- cgit v1.2.3