Add kick logline (#821)

This commit is contained in:
Calvin Montgomery 2019-08-01 19:49:22 -07:00
parent 77b7af7fd9
commit 27e8885285
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.66.0",
"version": "3.66.1",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -282,6 +282,12 @@ User.prototype.autoAFK = function () {
};
User.prototype.kick = function (reason) {
LOGGER.info(
'%s (%s) was kicked: "%s"',
this.realip,
this.getName(),
reason
);
this.socket.emit("kick", { reason: reason });
this.socket.disconnect();
};