proclist: ..

This commit is contained in:
Alastair Poole 2021-03-14 17:15:20 +00:00
parent 2d021e921e
commit a725bed237
1 changed files with 2 additions and 3 deletions

View File

@ -865,9 +865,8 @@ _process_ignore(Data *pd, Proc_Info *proc)
if (!pd->search.len) return 0;
if (strncasecmp(proc->command, pd->search.text, pd->search.len))
return 1;
if (!strstr(proc->command, pd->search.text))
if ((strncasecmp(proc->command, pd->search.text, pd->search.len)) &&
(!strstr(proc->command, pd->search.text)))
return 1;
return 0;