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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user