From e4d4a5657c36231f3fc02b9def6ebb193cf95f15 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 5 Feb 2016 21:23:50 +1000 Subject: More Lua network messages clean ups. Highlights - Properly deal with ( and ). "return x" -> "return(x)". No more special casing. --- src/extantz/extantz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/extantz') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index 089cc41..f2c0a43 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -43,7 +43,7 @@ static boolean clientParser(void *data, Connection *connection, char *SID, char || (0 == strcmp(command, "llSay")) || (0 == strcmp(command, "llShout"))) { - sprintf(buf, "%s: %s(%s", SID, command, arguments); + sprintf(buf, "%s: %s(%s)", SID, command, arguments); if (ourGlobals->purkle) { int _P; @@ -65,11 +65,11 @@ static boolean clientParser(void *data, Connection *connection, char *SID, char _M = lua_gettop(ourGlobals->LSLGuiMess->L); // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that. - sprintf(buf, "%s(%s", command, arguments); + sprintf(buf, "%s(%s)", command, arguments); push_lua(ourGlobals->LSLGuiMess->L, "@ ( $ )", _M, "doLua", buf, 0); } else - PE("No LSLGuiMess to send - %s(%s", command, arguments); + PE("No LSLGuiMess to send - %s(%s)", command, arguments); } else if (0 == strcmp(command, "loadSim")) { -- cgit v1.1