summaryrefslogtreecommitdiffstats
path: root/game/server/chat.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /game/server/chat.cc
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/server/chat.cc')
-rw-r--r--game/server/chat.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/server/chat.cc b/game/server/chat.cc
index 1634c59..b7826b0 100644
--- a/game/server/chat.cc
+++ b/game/server/chat.cc
@@ -11,7 +11,8 @@ static void on_chat_message_packet(const protocol::ChatMessage& packet)
if(packet.type == protocol::ChatMessage::TEXT_MESSAGE) {
if(auto session = sessions::find(packet.peer)) {
server_chat::broadcast(packet.message.c_str(), session->client_username.c_str());
- } else {
+ }
+ else {
server_chat::broadcast(packet.message.c_str(), packet.sender.c_str());
}
}