Remove uh_name_ variable.

This is unneeded, as the only user handler is the forum/db handler.
This commit is contained in:
Pentarctagon 2019-08-20 18:52:56 -05:00 committed by Gunter Labes
parent 77fc455b0b
commit 4a93de4b00
2 changed files with 1 additions and 6 deletions

View file

@ -246,7 +246,6 @@ server::server(int port,
, last_user_seen_time_(std::time(nullptr))
, restart_command()
, max_ip_log_size_(0)
, uh_name_()
, deny_unregistered_login_(false)
, save_replays_(false)
, replay_save_path_()
@ -456,7 +455,6 @@ void server::load_config()
admin_passwd_ = cfg_["passwd"].str();
motd_ = cfg_["motd"].str();
lan_server_ = cfg_["lan_server"].to_time_t(0);
uh_name_ = cfg_["user_handler"].str();
deny_unregistered_login_ = cfg_["deny_unregistered_login"].to_bool();
@ -525,9 +523,7 @@ void server::load_config()
if(const config& user_handler = cfg_.child("user_handler")) {
#ifdef HAVE_MYSQLPP
if(uh_name_ == "forum" || uh_name_.empty()) {
user_handler_.reset(new fuh(user_handler));
}
user_handler_.reset(new fuh(user_handler));
#endif
// Initiate the mailer class with the [mail] tag
// from the config file

View file

@ -148,7 +148,6 @@ private:
std::time_t last_user_seen_time_;
std::string restart_command;
std::size_t max_ip_log_size_;
std::string uh_name_;
bool deny_unregistered_login_;
bool save_replays_;
std::string replay_save_path_;