The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Public Attributes | List of all members
user_handler::ban_info Struct Reference

Ban status description. More...

#include <user_handler.hpp>

Public Member Functions

 ban_info ()
 
 ban_info (BAN_TYPE ptype, std::time_t pduration)
 

Public Attributes

BAN_TYPE type
 Ban type. More...
 
std::time_t duration
 Ban duration (0 if permanent) More...
 

Detailed Description

Ban status description.

Definition at line 88 of file user_handler.hpp.

Constructor & Destructor Documentation

◆ ban_info() [1/2]

user_handler::ban_info::ban_info ( )
inline

Definition at line 93 of file user_handler.hpp.

◆ ban_info() [2/2]

user_handler::ban_info::ban_info ( BAN_TYPE  ptype,
std::time_t  pduration 
)
inline

Definition at line 99 of file user_handler.hpp.

References user_handler::user_is_banned().

Member Data Documentation

◆ duration

std::time_t user_handler::ban_info::duration

Ban duration (0 if permanent)

Definition at line 91 of file user_handler.hpp.

Referenced by wesnothd::server::is_login_allowed().

◆ type

BAN_TYPE user_handler::ban_info::type

Ban type.

Definition at line 90 of file user_handler.hpp.

Referenced by wesnothd::server::is_login_allowed().


The documentation for this struct was generated from the following file: