Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dont use stdout for error.

  • Loading branch information...
commit ed5b3c59e2d1b5270821a645148155ec97eefc25 1 parent b43ebd2
@anekos authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 url-buffer-with-title.rb
View
4 url-buffer-with-title.rb
@@ -46,6 +46,8 @@
require 'open-uri'
require 'thread'
+DEBUG = false
+
Config = {
'accept_url' => [nil, 'Regexp'],
'ignore_url' => [nil, 'Regexp'],
@@ -131,7 +133,7 @@ def urlbuf_print_cb (data, buffer, date, tags, displayed, highlight, prefix, mes
title = title.gsub(/[\t\r\n]+/, ' ').strip
$queue << Struct.new(:url, :title, :buffer_number).new(url, title, bnum)
rescue => e
- puts("#{url} #{e}")
+ Weechat.print("", "\t#{url} #{e}") if DEBUG
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.