summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-12-10 12:29:08 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-12-10 12:29:08 +0000
commit7f42a18b2f582b29dcf204ace260d08e12e25869 (patch)
tree563c897984c1abbe7917dc9273448263cd64b0b2 /data/rbot/plugins
parentdc37f783e46f0c75ba92e18463f7626fb3adfc20 (diff)
supplied in #53
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/markov.rb4
1 files changed, 4 insertions, 0 deletions
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