; it won't be logged. Default is empty; example: "kittens,ponies,faires"
; it won't be logged. Default is empty; example: "kittens,ponies,faires"
logfilters=""
logfilters=""
; Set the time interval in seconds that servatrice will use to communicate with each connected client
; to verify the client has not timed out. Defaults is 1 seconds
clientkeepalive=1
; Maximum time in seconds a player can stay inactive with there client not even responding to pings, before is
; considered disconnected; default is 15
max_player_inactivity_time=15
[authentication]
[authentication]
...
@@ -83,8 +91,8 @@ allowpunctuationprefix=false
...
@@ -83,8 +91,8 @@ allowpunctuationprefix=false
; Enable this feature? Default false.
; Enable this feature? Default false.
;enabled=false
;enabled=false
; Require users to provide an email address in order to register. Newly registered users will receive an
; Require users to provide an email address in order to register. Newly registered users will receive an
; activation token by email, and will be required to input back this token on cockatrice at the first login
; activation token by email, and will be required to input back this token on cockatrice at the first login
; to get their account activated. Default true.
; to get their account activated. Default true.
;requireemail=true
;requireemail=true
...
@@ -119,7 +127,7 @@ subject="Cockatrice server account activation token"
...
@@ -119,7 +127,7 @@ subject="Cockatrice server account activation token"
; Email body. You can use these tags here: %username %token
; Email body. You can use these tags here: %username %token
; They will be substituted with the actual values in the email
; They will be substituted with the actual values in the email
;
;
body="Hi %username, thank our for registering on our Cockatrice server\r\nHere's the activation token you need to supply for activating your account:\r\n\r\n%token\r\n\r\nHappy gaming!"
body="Hi %username, thank our for registering on our Cockatrice server\r\nHere's the activation token you need to supply for activating your account:\r\n\r\n%token\r\n\r\nHappy gaming!"
QSqlQuery*query=servatriceDatabaseInterface->prepareQuery("select id, ssl_cert, hostname, address, game_port, control_port from {prefix}_servers order by id asc");
QSqlQuery*query=servatriceDatabaseInterface->prepareQuery("select id, ssl_cert, hostname, address, game_port, control_port from {prefix}_servers order by id asc");
QSqlQuery*query=servatriceDatabaseInterface->prepareQuery("select a.name, b.email, b.token from {prefix}_activation_emails a left join {prefix}_users b on a.name = b.name");
QSqlQuery*query=servatriceDatabaseInterface->prepareQuery("select a.name, b.email, b.token from {prefix}_activation_emails a left join {prefix}_users b on a.name = b.name");