Refactor channel packing
This commit is contained in:
parent
02ac983fba
commit
f3eb999a76
9 changed files with 112 additions and 46 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue