]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
factoids plugin: split facts output at the -- joiner
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 24 Dec 2007 14:02:31 +0000 (14:02 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 24 Dec 2007 14:02:31 +0000 (14:02 +0000)
data/rbot/plugins/factoids.rb

index 59a38aba1d30656c3236e5cc854a03ddf2f6a1d4..da437c84df121e2715513241314c8bde5e8c1da4 100644 (file)
@@ -319,7 +319,7 @@ class FactoidsPlugin < Plugin
           reply << long_fact(f)
         }
       end
-      m.reply reply.join(" -- ")
+      m.reply reply.join(" -- "), :split_at => /\s+--\s+/
     end
   end