mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Fixed bug with logging where item names starting with the same string were not logged properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3314 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b832f1f7b2
commit
0d96d40b30
1 changed files with 3 additions and 9 deletions
|
|
@ -252,15 +252,9 @@ static int itemcmp(const char *patt, const char *item)
|
|||
|
||||
if (item == NULL)
|
||||
return g_strcasecmp(patt, "*") != 0;
|
||||
|
||||
for (;*patt != '\0'; patt++, item++)
|
||||
{
|
||||
if (*patt == '*')
|
||||
return 0;
|
||||
if (*patt != *item)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
if (*patt == '*')
|
||||
return 0;
|
||||
return g_strcasecmp(patt, item);
|
||||
}
|
||||
|
||||
LOG_ITEM_REC *log_item_find(LOG_REC *log, int type, const char *item,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue