mirror of https://github.com/calzoneman/sync.git
Add kick logline (#821)
This commit is contained in:
parent
77b7af7fd9
commit
27e8885285
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue