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

Merge pull request #92 from MinusGix/tripInfo

Add trip to various commands that include nickname of moderator using…
This commit is contained in:
marzavec 2020-03-06 15:33:51 -06:00 committed by GitHub
commit 14c839b0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;