Merge pull request #92 from MinusGix/tripInfo
Add trip to various commands that include nickname of moderator using…
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user