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

View file

@ -288,6 +288,8 @@ Channel.prototype.tryRegister = function(user) {
else {
if(Database.registerChannel(this.name)) {
this.registered = true;
this.initialized = true;
this.saveDump();
this.saveRank(user);
user.socket.emit("registerChannel", {
success: true,