mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-25 11:46:54 +01:00
a3a442db3a
Fixed message duping bug
7 lines
179 B
Python
7 lines
179 B
Python
import socket
|
|
import struct
|
|
|
|
def send03(socket, message):
|
|
socket.send("\x03")
|
|
socket.send(struct.pack('!h', message.__len__()))
|
|
socket.send(message.encode("utf-16be")) |