diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-10-13 15:38:56 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-10-13 15:38:56 +0000 |
commit | e6f0ce016d6a016e04e6bae065c700113122c021 (patch) | |
tree | b0382966819e2bf0d54b8e08b799a853bca20fef | |
parent | 8b0e2e09f81a7d89ceb52e947e9db12a206a8c37 (diff) |
close #38
-rw-r--r-- | data/rbot/plugins/markov.rb | 5 |
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) |