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
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;