1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Add trip to various commands that include nickname of moderator using them

This commit is contained in:
MinusGix 2020-03-06 15:29:15 -06:00
parent d784de1bb8
commit 0cedb40cc3
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ export async function run(core, server, socket, data) {
// notify mods // notify mods
server.broadcast({ server.broadcast({
cmd: 'info', 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 }); }, { level: UAC.isModerator });
// force connection closed // force connection closed

View File

@ -57,7 +57,7 @@ export async function run(core, server, socket, data) {
// notify mods // notify mods
server.broadcast({ server.broadcast({
cmd: 'info', 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 }); }, { level: UAC.isModerator });
return true; return true;

View File

@ -40,7 +40,7 @@ export async function run(core, server, socket, data) {
// notify mods // notify mods
server.broadcast({ server.broadcast({
cmd: 'info', cmd: 'info',
text: `${socket.nick} unmuzzled : ${target}`, text: `${socket.nick}#${socket.trip} unmuzzled : ${target}`,
}, { level: UAC.isModerator }); }, { level: UAC.isModerator });
return true; return true;

View File

@ -48,7 +48,7 @@ export async function run(core, server, socket, data) {
// notify mods // notify mods
server.broadcast({ server.broadcast({
cmd: 'info', cmd: 'info',
text: `${socket.nick} unbanned: ${target}`, text: `${socket.nick}#${socket.trip} unbanned: ${target}`,
}, { level: UAC.isModerator }); }, { level: UAC.isModerator });
// stats are fun // stats are fun

View File

@ -25,7 +25,7 @@ export async function run(core, server, socket) {
// notify mods // notify mods
server.broadcast({ server.broadcast({
cmd: 'info', cmd: 'info',
text: `${socket.nick} unbanned all ip addresses`, text: `${socket.nick}#${socket.trip} unbanned all ip addresses`,
}, { level: UAC.isModerator }); }, { level: UAC.isModerator });
return true; return true;