1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04: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:
Valentin Batz 2004-10-10 18:10:30 +00:00 committed by senneth
parent b832f1f7b2
commit 0d96d40b30

View File

@ -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,