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:
parent
d784de1bb8
commit
0cedb40cc3
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user