diff --git a/backend/websockets/chat.js b/backend/websockets/chat.js index 7aca981f..99097adc 100644 --- a/backend/websockets/chat.js +++ b/backend/websockets/chat.js @@ -606,11 +606,11 @@ module.exports = async function(ws, data, send, broadcast, server, ctx) { if(muted_ip) { var muteDate = time != -1 ? Date.now() + (time * 1000) : -1; - chat_mgr.muteByIP(effectiveWorldID, ipHeaderAddr, muteDate, user.id); + chat_mgr.muteByIP(effectiveWorldID, ipHeaderAddr, muteDate, id); if(muteDate == -1) { serverChatResponse("Muted client indefinitely", location); } else { - serverChatResponse("Muted client by username until " + create_date(muteDate), location); + serverChatResponse("Muted client by IP until " + create_date(muteDate), location); } } else { serverChatResponse("Client not found", location);