]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
search plugin: truncate overlong lines when outputting first par in compact form
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 23 May 2007 19:24:54 +0000 (19:24 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 23 May 2007 19:24:54 +0000 (19:24 +0000)
data/rbot/plugins/search.rb

index da6881f4d1de3a4d3114e7d7eb8b461f21e5316e..b8825bcb4aa88f55ed157229e5505cb29351e066 100644 (file)
@@ -91,7 +91,7 @@ class SearchPlugin < Plugin
 
     # If we return a single, full result, change the output to a more compact representation
     if single
-      m.reply "Result for %s: %s -- %s" % [what, results, Utils.get_first_pars(urls, first_pars)]
+      m.reply "Result for %s: %s -- %s" % [what, results, Utils.get_first_pars(urls, first_pars)], :overlong => :truncate
       return
     end