From fed3a064a788b94f1c0b420bf276c158f8197ddf Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 21 Aug 2023 19:25:03 +0200 Subject: Support rendering emoji unicode characters --- slack/weechat_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slack/weechat_config.py') diff --git a/slack/weechat_config.py b/slack/weechat_config.py index 78b36a1..6eab089 100644 --- a/slack/weechat_config.py +++ b/slack/weechat_config.py @@ -77,7 +77,7 @@ class WeeChatOption(Generic[WeeChatOptionType]): default_value: WeeChatOptionType min_value: Optional[int] = None max_value: Optional[int] = None - string_values: Optional[str] = None + string_values: Optional[list[WeeChatOptionType]] = None parent_option: Union[WeeChatOption[WeeChatOptionType], str, None] = None callback_change: Optional[ Callable[[WeeChatOption[WeeChatOptionType], bool], None] @@ -174,7 +174,7 @@ class WeeChatOption(Generic[WeeChatOptionType]): name, self.weechat_type, self.description, - self.string_values or "", + "|".join(str(x) for x in self.string_values or []), self.min_value or -(2**31), self.max_value or 2**31 - 1, default_value, -- cgit