aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-04-19 23:59:29 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-04-19 23:59:29 +0200
commit1c6f6f3357425dde22f6e52ca5f1d6bf0caea84b (patch)
tree9500a40daccdf5ed697bd32bbe7130d890ff0496 /server
parentremove unused code and fixes (diff)
downloadhackchat-1c6f6f3357425dde22f6e52ca5f1d6bf0caea84b.tar.gz
hackchat-1c6f6f3357425dde22f6e52ca5f1d6bf0caea84b.zip
add own nick to message
Diffstat (limited to '')
-rw-r--r--server/src/commands/core/bridge.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/core/bridge.js b/server/src/commands/core/bridge.js
index 01f7215..f80f11b 100644
--- a/server/src/commands/core/bridge.js
+++ b/server/src/commands/core/bridge.js
@@ -91,7 +91,7 @@ export async function run(core, server, socket, data) {
// build chat payload
const payload = {
cmd: "chat",
- nick: newNick,
+ nick: newNick + "@" + socket.nick,
text,
level: socket.level,
};