SmartFoxServer 2X C++ API
|
Changes the password of a Room at runtime. More...
#include <ChangeRoomPasswordStateRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
ChangeRoomPasswordStateRequest (boost::shared_ptr< Room > room, string newPass) | |
Constructor More... | |
Changes the password of a Room at runtime.
The request not only changes the password of a Room but also its "password state", which indicates if a Room is password protected or not.
This request might fail if the Room was configured to deny password runtime changes or if the User sending the request is not the owner of the Room.
Moderators and Administrator can override this last constraint.
Sfs2X::Requests::ChangeRoomPasswordStateRequest::ChangeRoomPasswordStateRequest | ( | boost::shared_ptr< Room > | room, |
string | newPass | ||
) |
Constructor
room | the Room |
newPass | the new password (null or empty string means no password) |