{{ $regEnabled := qb "SELECT value_int FROM system_settings WHERE name = 'ccreation_enabled'" }}
{{ $isClan := qb "SELECT user, clan FROM user_clans WHERE user = ?" .Context.User.ID }}
{{ if not .Context.User.ID }}
{{ .T "You need to login!" }}
{{ else if not ($regEnabled.value_int.Bool) }}
{{ .T "Sorry, it's not possible to create a clan at the moment. Please try again later." }}