aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-02-05 21:23:50 +1000
committerDavid Walter Seikel2016-02-05 21:23:50 +1000
commite4d4a5657c36231f3fc02b9def6ebb193cf95f15 (patch)
tree44e5c326e9436133815e6da658716dba51d63d7d /src/extantz
parentA little bit of clean up of the Lua network messaging TODO. (diff)
downloadSledjHamr-e4d4a5657c36231f3fc02b9def6ebb193cf95f15.zip
SledjHamr-e4d4a5657c36231f3fc02b9def6ebb193cf95f15.tar.gz
SledjHamr-e4d4a5657c36231f3fc02b9def6ebb193cf95f15.tar.bz2
SledjHamr-e4d4a5657c36231f3fc02b9def6ebb193cf95f15.tar.xz
More Lua network messages clean ups.
Highlights - Properly deal with ( and ). "return x" -> "return(x)". No more special casing.
Diffstat (limited to 'src/extantz')
-rw-r--r--src/extantz/extantz.c6
1 files changed, 3 insertions, 3 deletions
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
43 || (0 == strcmp(command, "llSay")) 43 || (0 == strcmp(command, "llSay"))
44 || (0 == strcmp(command, "llShout"))) 44 || (0 == strcmp(command, "llShout")))
45 { 45 {
46 sprintf(buf, "%s: %s(%s", SID, command, arguments); 46 sprintf(buf, "%s: %s(%s)", SID, command, arguments);
47 if (ourGlobals->purkle) 47 if (ourGlobals->purkle)
48 { 48 {
49 int _P; 49 int _P;
@@ -65,11 +65,11 @@ static boolean clientParser(void *data, Connection *connection, char *SID, char
65 _M = lua_gettop(ourGlobals->LSLGuiMess->L); 65 _M = lua_gettop(ourGlobals->LSLGuiMess->L);
66 66
67 // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that. 67 // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that.
68 sprintf(buf, "%s(%s", command, arguments); 68 sprintf(buf, "%s(%s)", command, arguments);
69 push_lua(ourGlobals->LSLGuiMess->L, "@ ( $ )", _M, "doLua", buf, 0); 69 push_lua(ourGlobals->LSLGuiMess->L, "@ ( $ )", _M, "doLua", buf, 0);
70 } 70 }
71 else 71 else
72 PE("No LSLGuiMess to send - %s(%s", command, arguments); 72 PE("No LSLGuiMess to send - %s(%s)", command, arguments);
73 } 73 }
74 else if (0 == strcmp(command, "loadSim")) 74 else if (0 == strcmp(command, "loadSim"))
75 { 75 {