{{{o.__('Moderator Tools')}}}
  • Roles
  • Affiliations

{{{o.__("Roles are assigned to users to grant or deny them certain abilities in a multi-user chat. They're assigned either explicitly or implicitly as part of an affiliation. A role that's not due to an affiliation, is only valid for the duration of the user's session.")}}}

{[ if (o.role === 'moderator') { ]}

{{{o.__("Moderators are privileged users who can change the roles of other users (except those with admin or owner affiliations.")}}}

{[ } ]} {[ if (o.role === 'participant') { ]}

{{{o.__("The default role, implies that you can read and write messages.")}}}

{[ } ]} {[ if (o.role === 'visitor') { ]}

{{{o.__("Visitors aren't allowed to write messages in a moderated multi-user chat.")}}}

{[ } ]}
    {[ if (o.loading_users_with_role) { ]}
  • {[ } ]} {[ if (o.users_with_role && o.users_with_role.length === 0) { ]}
  • {{{o.__('No users with that role found.')}}}
  • {[ } ]} {[ (o.users_with_role || []).forEach(function (item) { ]}
    • JID: {{{item.jid}}}
    • Nickname: {{{item.nick}}}
    • Role: {{{item.role}}}
  • {[ }); ]}

{{{o.__("An affiliation is a long-lived entitlement which typically implies a certain role and which grants privileges and responsibilities. For example admins and owners automatically have the moderator role.")}}}

{[ if (o.affiliation === 'owner') { ]}

{{{o.__("Owner is the highest affiliation. Owners can modify roles and affiliations of all other users.")}}}

{[ } ]} {[ if (o.affiliation === 'admin') { ]}

{{{o.__("Admin is the 2nd highest affiliation. Admins can modify roles and affiliations of all other users except owners.")}}}

{[ } ]} {[ if (o.affiliation === 'outcast') { ]}

{{{o.__("To ban a user, you give them the affiliation of \"outcast\".")}}}

{[ } ]}
    {[ if (o.loading_users_with_affiliation) { ]}
  • {[ } else { ]} {[ if (o.users_with_affiliation && o.users_with_affiliation.length === 0) { ]}
  • {{{o.__('No users with that affiliation found.')}}}
  • {[ } else if (o.users_with_affiliation instanceof Error) { ]}
  • {{{o.users_with_affiliation.message}}}
  • {[ } else { ]} {[ (o.users_with_affiliation || []).forEach(function (item) { ]}
    • JID: {{{item.jid}}}
    • Nickname: {{{item.nick}}}
    • Affiliation: {{{item.affiliation}}}
  • {[ }); ]} {[ } ]} {[ } ]}