From c16498139ee57463a4c4ef8cae16e87a88db4ca8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 12 Apr 2015 20:53:48 +0200 Subject: weechat/colorize_nicks: verbump 16 → 17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weechat/python/colorize_nicks.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'weechat') diff --git a/weechat/python/colorize_nicks.py b/weechat/python/colorize_nicks.py index 413e450..d7b3b70 100644 --- a/weechat/python/colorize_nicks.py +++ b/weechat/python/colorize_nicks.py @@ -21,6 +21,8 @@ # # # History: +# 2015-02-23, holomorph +# version 17: fix coloring in non-channel buffers (#58) # 2014-09-17, holomorph # version 16: use weechat config facilities # clean unused, minor linting, some simplification @@ -65,7 +67,7 @@ w = weechat SCRIPT_NAME = "colorize_nicks" SCRIPT_AUTHOR = "xt " -SCRIPT_VERSION = "16" +SCRIPT_VERSION = "17" SCRIPT_LICENSE = "GPL" SCRIPT_DESC = "Use the weechat nick colors in the chat area" @@ -150,7 +152,7 @@ def colorize_cb(data, modifier, modifier_data, line): if buffer not in colored_nicks: return line - if channel in ignore_channels: + if channel and channel in ignore_channels: return line min_length = w.config_integer(colorize_config_option['min_nick_length']) @@ -222,7 +224,7 @@ def colorize_input_cb(data, modifier, modifier_data, line): return line channel = w.buffer_get_string(buffer, 'name') - if channel in ignore_channels: + if channel and channel in ignore_channels: return line reset = w.color('reset') -- cgit v1.2.3-70-g09d2