forked from github/server
updating firstturn from the server
This commit is contained in:
parent
ff761f22b3
commit
6b27b2a0c2
|
@ -1144,8 +1144,9 @@ parse_quit(void)
|
|||
}
|
||||
} else {
|
||||
if (f->subscription) {
|
||||
sql_print(("UPDATE subscriptions SET status='ACTIVE', lastturn=%d, password='%s' WHERE id=%u;\n",
|
||||
f->lastorders, f->override, f->subscription));
|
||||
sql_print(("UPDATE subscriptions SET status='ACTIVE', lastturn=%d, firstturn=%d, password='%s' WHERE id=%u;\n",
|
||||
f->lastorders, f->lastorders-f->age,
|
||||
f->override, f->subscription));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue