From 27e88852853dbf7e71aff79426efebcddeb10e0c Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 1 Aug 2019 19:49:22 -0700 Subject: [PATCH] Add kick logline (#821) --- package.json | 2 +- src/user.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 65664b99..35e4783c 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/user.js b/src/user.js index a8149712..c3699d83 100644 --- a/src/user.js +++ b/src/user.js @@ -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(); };