diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-09-28 09:46:18 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-09-28 09:46:18 +0000 |
commit | bd68a53c74b1e8e9877af68743ca382fadf26d9b (patch) | |
tree | 8eae994f0ba4c267f497c5e1b77ddf063dd017c6 | |
parent | 992d875c1a83a9fc167636fb31941034873da02b (diff) |
roll out that one change
-rw-r--r-- | data/rbot/plugins/markov.rb | 7 |
1 files changed, 2 insertions, 5 deletions
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 |