isModerator()
Availability:
SmartFoxServer Basic / Pro
Usage:
user.isModerator()
Description:
Returns True if the client is a moderator.
This allows the client to send kick and ban requests to the server.
Parameters:
none | none |
Returns:
A boolean, true = is a moderator
Example:
isMod = user.isModerator() if (isMod) then //... do something cool here ... end if
data=[#id:3, #message:"You are banned"] smartFox.sendXtMessage("$dmn", "kick", data)
See also:
login(), onLogin()