]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
factoids plugin: split correctly when displaying facts
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 17 Feb 2008 21:12:15 +0000 (22:12 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 17 Feb 2008 21:12:15 +0000 (22:12 +0100)
data/rbot/plugins/factoids.rb

index cba09b983696e4c02bbebb8eb8f21933457b180b..aeb6557fc8d534d221f1fb2b90c2933c75bed0b0 100644 (file)
@@ -366,7 +366,7 @@ class FactoidsPlugin < Plugin
           reply << short_fact(f)
         }
       end
-      m.reply reply.join(". "), :split_at => /\s+--\s+/
+      m.reply reply.join(". "), :split_at => /\[\d+\/\d+\] /, :purge_split => false
     end
   end