修复聊天消息解析错误
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user