Previously this code would consider requests with fields but no
flags as fuzzy. This is incorrect as users can make requests like:
WHO Sadie %n
Reported by @ilbelkyr.
if (matchtext == "0")
matchtext = "*";
- // Fuzzy matches are when the source has not specified a specific user.
- fuzzy_match = (parameters.size() > 1) || (matchtext.find_first_of("*?.") != std::string::npos);
-
// If flags have been specified by the source.
if (parameters.size() > 1)
{
current_bitset->set(chr);
}
}
+
+ // Fuzzy matches are when the source has not specified a specific user.
+ fuzzy_match = flags.any() || (matchtext.find_first_of("*?.") != std::string::npos);
}
};