|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Kicks a user out of the server. More...
#include <KickUserRequest.h>
Public Member Functions | |
| KickUserRequest (int32_t userId, std::string message="", int32_t delaySeconds=5) | |
Static Public Attributes | |
| static const int32_t | MAX_DELAY_SECONDS = 10 |
| The longest delay the server accepts, in seconds. | |
Kicks a user out of the server.
The current user must have administration or moderation privileges to kick another user (see User::getPrivilegeId()). The request can carry a message explaining the reason of the disconnection, which reaches the kicked user as a MODERATOR_MESSAGE event.
A kicked user can reconnect to the server straight away, unlike a banned one.
|
inline |
| userId | the id of the user to kick |
| message | the message delivered to the user before kicking him; when empty, the default message set in the SmartFoxServer 3 Administration Tool is used |
| delaySeconds | the number of seconds between the kick message and the actual disconnection; must be within 0 and 10 |