markov: unify should_talk
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 25 Jan 2010 22:11:43 +0000 (23:11 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 25 Jan 2010 22:11:43 +0000 (23:11 +0100)
commit8302e6c468c5688dfd382b9264a8e8780f4edba6
tree17d12d69bd42bc8879ef4da870c208c98796fddc
parentdb379fd8e1b9b9f4829217b2d5262e7629360413
markov: unify should_talk

Unify probability check for addressed and non-addressed case by
passing the message as a parameter to should_talk and picking the
probability accordingly.
data/rbot/plugins/markov.rb