mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
irc: fix bug with comma in irc color code: do not strip comma if it is not followed by a digit (bug #33662)
This commit is contained in:
@@ -23,6 +23,8 @@ Version 0.3.6 (under dev!)
|
||||
hdata_get_string
|
||||
* api: fix bug with function config_set_desc_plugin (use immediately
|
||||
description for option when function is called)
|
||||
* irc: fix bug with comma in irc color code: do not strip comma if it is not
|
||||
followed by a digit (bug #33662)
|
||||
* irc: add prefix "#" for all channels on join (if no prefix given)
|
||||
* irc: switch to buffer on /join #channel if channel buffer already exists
|
||||
* irc: update host of nicks on manual /who
|
||||
|
||||
@@ -140,20 +140,17 @@ irc_color_decode (const char *string, int keep_colors)
|
||||
ptr_string++;
|
||||
}
|
||||
}
|
||||
if (ptr_string[0] == ',')
|
||||
if ((ptr_string[0] == ',') && (isdigit (ptr_string[1])))
|
||||
{
|
||||
ptr_string++;
|
||||
str_bg[0] = ptr_string[0];
|
||||
str_bg[1] = '\0';
|
||||
ptr_string++;
|
||||
if (isdigit (ptr_string[0]))
|
||||
{
|
||||
str_bg[0] = ptr_string[0];
|
||||
str_bg[1] = '\0';
|
||||
str_bg[1] = ptr_string[0];
|
||||
str_bg[2] = '\0';
|
||||
ptr_string++;
|
||||
if (isdigit (ptr_string[0]))
|
||||
{
|
||||
str_bg[1] = ptr_string[0];
|
||||
str_bg[2] = '\0';
|
||||
ptr_string++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (keep_colors)
|
||||
|
||||
Reference in New Issue
Block a user