1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

core: remove unnecessary condition in function gui_nicklist_get_group_start

This commit is contained in:
Sébastien Helleu
2024-04-28 19:06:48 +02:00
parent f1fa143b21
commit eac442a855
+2 -5
View File
@@ -809,14 +809,11 @@ gui_nicklist_get_group_start (const char *name)
ptr_name = name;
while (isdigit ((unsigned char)ptr_name[0]))
{
if (ptr_name[0] == '|')
break;
ptr_name++;
}
if ((ptr_name[0] == '|') && (ptr_name != name))
if ((ptr_name > name) && (ptr_name[0] == '|'))
return ptr_name + 1;
else
return name;
return name;
}
/*