X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b890edf87450294368e2498b67c8e3f7a4c30fd8..cbfa57a03cbbefbc6bf682757e27615aa7e633e4:/weechat/python/colorize_nicks.py diff --git a/weechat/python/colorize_nicks.py b/weechat/python/colorize_nicks.py index 2c85c7c..10ffb71 100644 --- a/weechat/python/colorize_nicks.py +++ b/weechat/python/colorize_nicks.py @@ -21,6 +21,9 @@ # # # History: +# 2022-11-07: mva +# version 30: add ":" and "," to VALID_NICK regexp, +# to don't reset colorization in input_line # 2022-07-11: ncfavier # version 29: check nick for exclusion *after* stripping # decrease minimum min_nick_length to 1 @@ -93,13 +96,13 @@ w = weechat SCRIPT_NAME = "colorize_nicks" SCRIPT_AUTHOR = "xt " -SCRIPT_VERSION = "29" +SCRIPT_VERSION = "30" SCRIPT_LICENSE = "GPL" SCRIPT_DESC = "Use the weechat nick colors in the chat area" # Based on the recommendations in RFC 7613. A valid nick is composed # of anything but " ,*?.!@". -VALID_NICK = r'([@~&!%+-])?([^\s,\*?\.!@]+)' +VALID_NICK = r'([@~&!%+-])?([^\s,\*?\.!@:,]+)' valid_nick_re = re.compile(VALID_NICK) ignore_channels = [] ignore_nicks = []