![]() |
SmartFoxServer 2X C++ API
|
Banish a User from the system (for moderators and admins only) More...
#include <BanUserRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
| BanUserRequest (long int userId) | |
| BanUserRequest(long int, string, BanMode, long int, long int) More... | |
| BanUserRequest (long int userId, string message) | |
| BanUserRequest(long int, string, BanMode, long int, long int) More... | |
| BanUserRequest (long int userId, string message, BanMode banMode) | |
| BanUserRequest(long int, string, BanMode, long int, long int) More... | |
| BanUserRequest (long int userId, string message, BanMode banMode, long int delaySeconds) | |
| BanUserRequest(long int, string, BanMode, long int, long int) More... | |
| BanUserRequest (long int userId, string message, BanMode banMode, long int delaySeconds, long int durationHours) | |
| Constructor More... | |
Banish a User from the system (for moderators and admins only)
Allows to send a custom message and to set a delay in seconds. It also allows to choose banning by user name or user IP address
| Sfs2X::Requests::BanUserRequest::BanUserRequest | ( | long int | userId | ) |
| Sfs2X::Requests::BanUserRequest::BanUserRequest | ( | long int | userId, |
| string | message | ||
| ) |
| Sfs2X::Requests::BanUserRequest::BanUserRequest | ( | long int | userId, |
| string | message, | ||
| BanMode | banMode | ||
| ) |
| Sfs2X::Requests::BanUserRequest::BanUserRequest | ( | long int | userId, |
| string | message, | ||
| BanMode | banMode, | ||
| long int | delaySeconds | ||
| ) |
| Sfs2X::Requests::BanUserRequest::BanUserRequest | ( | long int | userId, |
| string | message, | ||
| BanMode | banMode, | ||
| long int | delaySeconds, | ||
| long int | durationHours | ||
| ) |
Constructor
| userId | the id of the User to be banned |
| message | a custom ban message, if null the message configured on the server side will be used |
| banMode | choose between banning by Ip Address or User name, see BanMode� class |
| delaySeconds | a delay in seconds between the message (immediate) and the kick (delayed). Default is 5 seconds |
| durationHours | The duration of the banishment, expressed in hours. |