aboutsummaryrefslogtreecommitdiffstats
path: root/weechat
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:03:19 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:03:19 +0200
commit1de2463cb8455c504a5e594c2713cfa467b473a8 (patch)
tree43cd9670a7247601380416c888b79d9705fefc21 /weechat
parent394ba6a43837cfde54903db2a805585bb853ad5d (diff)
downloaddotfiles-1de2463cb8455c504a5e594c2713cfa467b473a8.tar.xz
weechat: announce_url_titles: updver 17 → 18
Diffstat (limited to 'weechat')
-rw-r--r--weechat/python/announce_url_title.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/weechat/python/announce_url_title.py b/weechat/python/announce_url_title.py
index f652c15..1b802d3 100644
--- a/weechat/python/announce_url_title.py
+++ b/weechat/python/announce_url_title.py
@@ -39,6 +39,10 @@
#
#
# History:
+#
+# 2014-05-10, Sébastien Helleu <flashcode@flashtux.org>
+# version 18: change hook_print callback argument type of displayed/highlight
+# (WeeChat >= 1.0)
# 2013-11-07, excalibr
# version 17: add more characters to exclude in escaping (this fix problem with youtube urls)
# 2012-11-15, xt
@@ -48,7 +52,7 @@
# small bug fix for version 14 changes
# 2011-08-23, Deltafire
# version 14: ignore filtered lines
-# 2011-03-11, Sebastien Helleu <flashcode@flashtux.org>
+# 2011-03-11, Sébastien Helleu <flashcode@flashtux.org>
# version 13: get python 2.x binary for hook_process (fix problem when python 3.x is default python version)
# 2010-12-10, xt
# version 12: add better ignores (code based on m4v inotify.py)
@@ -86,7 +90,7 @@ from urllib import quote
SCRIPT_NAME = "announce_url_title"
SCRIPT_AUTHOR = "xt <xt@bash.no>"
-SCRIPT_VERSION = "17"
+SCRIPT_VERSION = "18"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "Announce URL titles to channel or locally"
@@ -132,7 +136,7 @@ def url_print_cb(data, buffer, time, tags, displayed, highlight, prefix, message
global buffer_name, urls, ignore_buffers
# Do not trigger on filtered lines and notices
- if displayed == '0' or prefix == '--':
+ if not int(displayed) or prefix == '--':
return w.WEECHAT_RC_OK
msg_buffer_name = w.buffer_get_string(buffer, "name")