]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
quiz plugin: split top N tables at the name divisor
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 4 Oct 2007 23:46:51 +0000 (23:46 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 4 Oct 2007 23:46:51 +0000 (23:46 +0000)
data/rbot/plugins/games/quiz.rb

index 37602fba7b62cfc1f394fcdf17d0ad4f58d3cc9d..792b75ae2e9f809e7e9efed79cf7d5ed46068948 100644 (file)
@@ -706,7 +706,7 @@ class QuizPlugin < Plugin
       score = player[1].score
       ar << "#{i + 1}. #{unhilight_nick( nick )} (#{score})"
     end
-    m.reply ar.join(" | ")
+    m.reply ar.join(" | "), :split_at => /\s+\|\s+/
   end