summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-10-13 15:38:56 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-10-13 15:38:56 +0000
commite6f0ce016d6a016e04e6bae065c700113122c021 (patch)
treeb0382966819e2bf0d54b8e08b799a853bca20fef /data/rbot/plugins
parent8b0e2e09f81a7d89ceb52e947e9db12a206a8c37 (diff)
close #38
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/markov.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index e06753fa..0e5923ef 100644
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -116,7 +116,10 @@ class MarkovPlugin < Plugin
return unless should_talk
line = generate_string(message)
return unless line
- m.reply line unless line == message
+ return if line == message
+ @bot.timer.add_once(delay, m) {|m|
+ m.reply line
+ }
end
def chat(m, params)