#include "array.h"
#include "network.h"
#include "istream.h"
+#include "wildcard-match.h"
#include "hash.h"
#include "doveadm.h"
const struct who_filter *filter)
{
if (filter->username != NULL) {
- if (strstr(user->username, filter->username) == NULL)
+ if (!wildcard_match_icase(user->username, filter->username))
return FALSE;
}
if (filter->net_bits > 0) {
const struct who_filter *filter)
{
if (filter->username != NULL) {
- if (strstr(line->username, filter->username) == NULL)
+ if (!wildcard_match_icase(line->username, filter->username))
return FALSE;
}
if (filter->net_bits > 0) {