Getting an identifier of a rights group by its name.
function mGetRoleIDByName(sName: string): integer;
Parameter |
Type |
Value |
---|---|---|
sName |
string |
rights group name. The letter case is important. |
Notice!
MyChat has two role names, which cannot be deleted or renamed. These are "Guests" and "WEB guests". New registered users are added to the first group, all those who come to MyChat from the website (WEB support chat) are added to the second group.
Numeric ID of a rights group. If a name does not exist, the function returns -1.