diff options
author | marzavec <admin@marzavec.com> | 2018-03-25 23:16:02 +0200 |
---|---|---|
committer | marzavec <admin@marzavec.com> | 2018-03-25 23:16:02 +0200 |
commit | ce766fa1db1a6c3cc83f588373c927ffa04733ba (patch) | |
tree | c5f4f86b8df1808cb4f14ca3e77ba411927db306 /server/src | |
parent | Added unban by hash (diff) | |
download | hackchat-ce766fa1db1a6c3cc83f588373c927ffa04733ba.tar.gz hackchat-ce766fa1db1a6c3cc83f588373c927ffa04733ba.zip |
Rolled client back to legacy & synced prod modules
Diffstat (limited to '')
-rw-r--r-- | server/src/commands/core/invite.js | 1 | ||||
-rw-r--r-- | server/src/commands/mod/ban.js | 1 | ||||
-rw-r--r-- | server/src/commands/mod/kick.js | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/core/invite.js b/server/src/commands/core/invite.js index 5889562..a6412e1 100644 --- a/server/src/commands/core/invite.js +++ b/server/src/commands/core/invite.js @@ -36,6 +36,7 @@ exports.run = async (core, server, socket, data) => { let payload = { cmd: 'info', + invite: channel, text: `${socket.nick} invited you to ?${channel}` }; let inviteSent = server.broadcast( payload, { channel: socket.channel, nick: data.nick }); diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js index 19f297a..409217a 100644 --- a/server/src/commands/mod/ban.js +++ b/server/src/commands/mod/ban.js @@ -37,7 +37,6 @@ exports.run = async (core, server, socket, data) => { return; } - // TODO unban by hash let clientHash = server.getSocketHash(badClient); server._police.arrest(badClient.remoteAddress, clientHash); diff --git a/server/src/commands/mod/kick.js b/server/src/commands/mod/kick.js index f51d576..1958ef3 100644 --- a/server/src/commands/mod/kick.js +++ b/server/src/commands/mod/kick.js @@ -52,7 +52,7 @@ exports.run = async (core, server, socket, data) => { server.broadcast({ cmd: 'info', text: `Kicked ${targetNick}` - }, { channel: socket.channel }); + }, { channel: socket.channel, uType: 'user' }); // inform mods with where they were sent server.broadcast({ |