Skip to content

Commit

Permalink
Fix unused variable warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon authored and soliton- committed Aug 22, 2019
1 parent b1e9220 commit 72e2038
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/server/server.cpp
Expand Up @@ -519,14 +519,12 @@ void server::load_config()
// nullptr every time we want to use it.
user_handler_.reset();

if(const config& user_handler = cfg_.child("user_handler")) {
#ifdef HAVE_MYSQLPP
if(const config& user_handler = cfg_.child("user_handler")) {
user_handler_.reset(new fuh(user_handler));
#endif
if(user_handler_) {
uuid_ = user_handler_->get_uuid();
}
uuid_ = user_handler_->get_uuid();
}
#endif
}

bool server::ip_exceeds_connection_limit(const std::string& ip) const
Expand Down

0 comments on commit 72e2038

Please sign in to comment.