diff options
Diffstat (limited to 'net/packet_out.py')
-rw-r--r-- | net/packet_out.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/packet_out.py b/net/packet_out.py index 1d6e2d2..fea93d4 100644 --- a/net/packet_out.py +++ b/net/packet_out.py @@ -15,9 +15,8 @@ def whisper(nick, message): def chat(text): chat_packet = PacketOut(CMSG_CHAT_MESSAGE) - mes = player_node.name + " : " + text - chat_packet.write_int16(len(mes) + 4 + 1) - chat_packet.write_string(mes, len(mes) + 1) + chat_packet.write_int16(len(text) + 4 + 1) + chat_packet.write_string(text, len(text) + 1) return str(chat_packet) def sit(val): |