]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/markov.rb
rss plugin: don't claim to be using old data when we don't
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / markov.rb
index 8abf0e584902f32dec8711ceeaf27c9975458bca..17446f6d7be4310e97c3d45cf91d716d1a6145fe 100644 (file)
@@ -39,6 +39,7 @@ class MarkovPlugin < Plugin
         sleep 0.5
       end
     end
+    @learning_thread.priority = -1
   end
 
   def cleanup
@@ -168,6 +169,7 @@ class MarkovPlugin < Plugin
     return unless should_talk
 
     word1, word2 = message.split(/\s+/)
+    return unless word1 and word2
     line = generate_string(word1, word2)
     return unless line
     return if line == message