From 7f42a18b2f582b29dcf204ace260d08e12e25869 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sat, 10 Dec 2005 12:29:08 +0000 Subject: supplied in #53 --- data/rbot/plugins/markov.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/rbot') diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index ef599df4..8d788310 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -162,6 +162,10 @@ class MarkovPlugin < Plugin # in channel message, the kind we are interested in message = clean_str m.message + + if m.action? + message = "#{m.sourcenick} #{message}" + end wordlist = message.split(/\s+/) return unless wordlist.length >= 2 -- cgit v1.2.3