mirror of https://github.com/calzoneman/sync.git
Fix bug where channel dump doesn't save the first time
This commit is contained in:
parent
c9d6c8b5db
commit
08dabeda59
|
@ -288,6 +288,8 @@ Channel.prototype.tryRegister = function(user) {
|
||||||
else {
|
else {
|
||||||
if(Database.registerChannel(this.name)) {
|
if(Database.registerChannel(this.name)) {
|
||||||
this.registered = true;
|
this.registered = true;
|
||||||
|
this.initialized = true;
|
||||||
|
this.saveDump();
|
||||||
this.saveRank(user);
|
this.saveRank(user);
|
||||||
user.socket.emit("registerChannel", {
|
user.socket.emit("registerChannel", {
|
||||||
success: true,
|
success: true,
|
||||||
|
|
Loading…
Reference in New Issue