diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-03-06 23:21:20 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-01 18:38:10 +0200 |
commit | 327e1054ca2086f51d20b374fd0d5bd907955d36 (patch) | |
tree | fdf53d9273e148ec152119c0771575bba0a2d228 /weechat/python/colorize_nicks.py | |
parent | 5f1a398f02d8cc4877613667f0de6214cad35714 (diff) | |
download | dotfiles-327e1054ca2086f51d20b374fd0d5bd907955d36.tar.xz |
weechat: Update defaults and scripts
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'weechat/python/colorize_nicks.py')
-rw-r--r-- | weechat/python/colorize_nicks.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weechat/python/colorize_nicks.py b/weechat/python/colorize_nicks.py index 506a3ab..1460f01 100644 --- a/weechat/python/colorize_nicks.py +++ b/weechat/python/colorize_nicks.py @@ -21,6 +21,8 @@ # # # History: +# 2017-03-01, arza <arza@arza.us> +# version 23: don't colorize nicklist group names # 2016-05-01, Simmo Saan <simmo.saan@gmail.com> # version 22: invalidate cached colors on hash algorithm change # 2015-07-28, xt @@ -77,7 +79,7 @@ w = weechat SCRIPT_NAME = "colorize_nicks" SCRIPT_AUTHOR = "xt <xt@bash.no>" -SCRIPT_VERSION = "22" +SCRIPT_VERSION = "23" SCRIPT_LICENSE = "GPL" SCRIPT_DESC = "Use the weechat nick colors in the chat area" @@ -276,6 +278,9 @@ def populate_nicks(*args): if buffer_ptr not in colored_nicks: colored_nicks[buffer_ptr] = {} + if w.infolist_string(nicklist, 'type') != 'nick': + continue + nick = w.infolist_string(nicklist, 'name') nick_color = colorize_nick_color(nick, my_nick) |