Refactor channel packing

This commit is contained in:
Calvin Montgomery 2014-05-23 23:09:36 -07:00
parent 02ac983fba
commit f3eb999a76
9 changed files with 112 additions and 46 deletions

View file

@ -62,6 +62,10 @@ ChatModule.prototype.save = function (data) {
data.chatmuted = Array.prototype.slice.call(this.muted);
};
ChatModule.prototype.packInfo = function (data, isAdmin) {
data.chat = Array.prototype.slice.call(this.buffer);
};
ChatModule.prototype.onUserPostJoin = function (user) {
var self = this;
user.waitFlag(Flags.U_LOGGED_IN, function () {