From e6f0ce016d6a016e04e6bae065c700113122c021 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Thu, 13 Oct 2005 15:38:56 +0000 Subject: close #38 --- data/rbot/plugins/markov.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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) -- cgit v1.2.3