mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -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…
Reference in New Issue
Block a user