]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
markov: strip lines before learning them
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 28 Jun 2010 21:40:28 +0000 (23:40 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 28 Jun 2010 21:40:28 +0000 (23:40 +0200)
commit8cc5ed2d63fe1de830009586b0102fc02f07ebfb
tree6b0a174a5b0feee3d6e2fb25dff06e41c290e7c4
parent13f34a595e3dca7171dc466cc6afece0ce2adcc5
markov: strip lines before learning them

This prevents a dead loop when learning lines starting with whitespace,
which could otherwise happen e.g. when learning from a file.
data/rbot/plugins/markov.rb