HashRequest hash(creator, x->second, stuff);
/* Now attempt to generate a hash */
user->WriteServ("NOTICE %s :%s hashed password for %s is %s",
- user->nick.c_str(), algo, stuff, hash.result.c_str());
+ user->nick.c_str(), algo, stuff, hash.hex().c_str());
}
else if (names.empty())
{
if (x != hashers.end())
{
/* Compare the hash in the config to the generated hash */
- if (!strcasecmp(data.c_str(), HashRequest(this, x->second, input).result.c_str()))
+ if (!strcasecmp(data.c_str(), HashRequest(this, x->second, input).hex().c_str()))
return MOD_RES_ALLOW;
/* No match, and must be hashed, forbid */
else