aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-12 20:53:48 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-12 20:53:48 +0200
commitc16498139ee57463a4c4ef8cae16e87a88db4ca8 (patch)
tree75a68ecfe0832acd40dd87e4b23278fdcfd145a0
parentc055ad3b95f0b49da0b0c172fdb04703bb804fc9 (diff)
downloaddotfiles-c16498139ee57463a4c4ef8cae16e87a88db4ca8.tar.xz
weechat/colorize_nicks: verbump 16 → 17
-rw-r--r--weechat/python/colorize_nicks.py8
1 files changed, 5 insertions, 3 deletions
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 <xt@bash.no>"
-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')