summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-22 09:16:32 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-22 09:16:32 +0100
commitab69d59c03a101de571fece156c96409e5ba5b61 (patch)
tree2d1f2b7a529c8d40bc437b265c89d107e103d47a /data/rbot
parent3431d171c3cca8f3b194b1739bfaa17f44597674 (diff)
markov plugin: remove @lastline cruft
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/markov.rb2
1 files changed, 0 insertions, 2 deletions
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)