aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/mod/ban.js
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2020-03-06 22:29:15 +0100
committerMinusGix <MinusGix@gmail.com>2020-03-06 22:29:15 +0100
commit0cedb40cc301e5ac1b218522bd711f63a670fe68 (patch)
tree66859e92d8a16d6f51e2131cc92f1c7ac9eec168 /server/src/commands/mod/ban.js
parentMerge pull request #91 from MinusGix/levelRewording (diff)
downloadhackchat-0cedb40cc301e5ac1b218522bd711f63a670fe68.tar.gz
hackchat-0cedb40cc301e5ac1b218522bd711f63a670fe68.zip
Add trip to various commands that include nickname of moderator using them
Diffstat (limited to 'server/src/commands/mod/ban.js')
-rw-r--r--server/src/commands/mod/ban.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/mod/ban.js b/server/src/commands/mod/ban.js
index e110e78..b33b55e 100644
--- a/server/src/commands/mod/ban.js
+++ b/server/src/commands/mod/ban.js
@@ -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