var plugged = require('../client');
var wsUpdate = require('../../web/index').wsGet('chatDelete');

module.exports = {
    event: plugged.CHAT_DELETE,
    handler: function (del) {
        wsUpdate({mod: {id: del.moderatorID, n: plugged.getUserByID(del.id).username}, cid: del.cid});
    }
};
@@ -246,18 +246,27 @@
 yID(del.
-id
+moderatorID
 ).userna

fix undefined in chat_delete