From ab69d59c03a101de571fece156c96409e5ba5b61 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 22 Mar 2008 09:16:32 +0100 Subject: markov plugin: remove @lastline cruft --- data/rbot/plugins/markov.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index 3ce2ba4f..5bae9bbd 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -32,7 +32,6 @@ class MarkovPlugin < Plugin @bot.config['markov.probability'] = @registry['probability'] @registry.delete('probability') end - @lastline = false end def generate_string(word1, word2) @@ -205,7 +204,6 @@ class MarkovPlugin < Plugin wordlist = message.split(/\s+/) return unless wordlist.length >= 2 - @lastline = message word1, word2 = :nonword, :nonword wordlist.each do |word3| @registry["#{word1} #{word2}"] = @registry["#{word1} #{word2}"].push(word3) -- cgit v1.2.3