30 : ban_type(rslt.get_signed32(
"ban_type"))
32 , user_id(rslt.get_signed32(
"ban_userid"))
33 , email(rslt.get_string(
"ban_email"))
35 auto ban_end = rslt.get_signed32(
"ban_end");
36 if(ban_end == 0)
return;
39 ban_duration = std::chrono::duration_cast<std::chrono::seconds>(time_remaining);
44 if(rslt->next()) { *
this =
ban_check{*rslt}; }
std::chrono::seconds ban_duration
std::chrono::seconds get_ban_duration()
void read(mariadb::result_set_ref rslt) override
An interface class to handle nick registration To activate it put a [user_handler] section into the s...
auto parse_timestamp(long long val)