From 0cedb40cc301e5ac1b218522bd711f63a670fe68 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Fri, 6 Mar 2020 15:29:15 -0600 Subject: Add trip to various commands that include nickname of moderator using them --- server/src/commands/mod/ban.js | 2 +- server/src/commands/mod/dumb.js | 2 +- server/src/commands/mod/speak.js | 2 +- server/src/commands/mod/unban.js | 2 +- server/src/commands/mod/unbanall.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'server/src/commands') diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js index e110e78..b33b55e 100644 --- a/server/src/commands/mod/ban.js +++ b/server/src/commands/mod/ban.js @@ -51,7 +51,7 @@ export async function run(core, server, socket, data) { // notify mods server.broadcast({ cmd: 'info', - text: `${socket.nick} banned ${targetNick} in ${socket.channel}, userhash: ${badClient.hash}`, + text: `${socket.nick}#${socket.trip} banned ${targetNick} in ${socket.channel}, userhash: ${badClient.hash}`, }, { level: UAC.isModerator }); // force connection closed diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js index 944f8c6..488ed9e 100644 --- a/server/src/commands/mod/dumb.js +++ b/server/src/commands/mod/dumb.js @@ -57,7 +57,7 @@ export async function run(core, server, socket, data) { // notify mods server.broadcast({ cmd: 'info', - text: `${socket.nick} muzzled ${data.nick} in ${socket.channel}, userhash: ${badClient.hash}`, + text: `${socket.nick}#${socket.trip} muzzled ${data.nick} in ${socket.channel}, userhash: ${badClient.hash}`, }, { level: UAC.isModerator }); return true; diff --git a/server/src/commands/mod/speak.js b/server/src/commands/mod/speak.js index 7dada13..f184ef5 100644 --- a/server/src/commands/mod/speak.js +++ b/server/src/commands/mod/speak.js @@ -40,7 +40,7 @@ export async function run(core, server, socket, data) { // notify mods server.broadcast({ cmd: 'info', - text: `${socket.nick} unmuzzled : ${target}`, + text: `${socket.nick}#${socket.trip} unmuzzled : ${target}`, }, { level: UAC.isModerator }); return true; diff --git a/server/src/commands/mod/unban.js b/server/src/commands/mod/unban.js index dd14a3a..9f50e92 100644 --- a/server/src/commands/mod/unban.js +++ b/server/src/commands/mod/unban.js @@ -48,7 +48,7 @@ export async function run(core, server, socket, data) { // notify mods server.broadcast({ cmd: 'info', - text: `${socket.nick} unbanned: ${target}`, + text: `${socket.nick}#${socket.trip} unbanned: ${target}`, }, { level: UAC.isModerator }); // stats are fun diff --git a/server/src/commands/mod/unbanall.js b/server/src/commands/mod/unbanall.js index 750c322..a5de3c8 100644 --- a/server/src/commands/mod/unbanall.js +++ b/server/src/commands/mod/unbanall.js @@ -25,7 +25,7 @@ export async function run(core, server, socket) { // notify mods server.broadcast({ cmd: 'info', - text: `${socket.nick} unbanned all ip addresses`, + text: `${socket.nick}#${socket.trip} unbanned all ip addresses`, }, { level: UAC.isModerator }); return true; -- cgit v1.2.1