Add kick logline (#821)
This commit is contained in:
parent
77b7af7fd9
commit
27e8885285
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.66.0",
|
"version": "3.66.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -282,6 +282,12 @@ User.prototype.autoAFK = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
User.prototype.kick = function (reason) {
|
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.emit("kick", { reason: reason });
|
||||||
this.socket.disconnect();
|
this.socket.disconnect();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue