修复聊天消息解析错误

This commit is contained in:
MrZ626
2021-02-11 23:17:52 +08:00
parent c433d77362
commit 3751292833
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ function scene.socketRead(mes)
textBox:push{
COLOR.W,args[1],
COLOR.dY,"#"..args[2].." ",
data.decode("string","base64",COLOR.sky,args[3])
COLOR.sky,data.decode("string","base64",args[3])
}
else
LOG.print("Illegal message: "..mes,30,COLOR.green)

View File

@@ -201,7 +201,7 @@ function scene.socketRead(mes)
textBox:push{
COLOR.W,args[1],
COLOR.dY,"#"..args[2].." ",
data.decode("string","base64",COLOR.sky,args[3])
COLOR.sky,data.decode("string","base64",args[3])
}
elseif cmd=="C"then
if tostring(USER.id)~=args[2]then