Fix bug where channel dump doesn't save the first time

This commit is contained in:
calzoneman 2013-06-19 22:27:24 -04:00
parent c9d6c8b5db
commit 08dabeda59
1 changed files with 2 additions and 0 deletions

View File

@ -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,