diff options
Diffstat (limited to '')
-rw-r--r-- | src/extantz/extantz.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index a6ffad7..7fce3a3 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c | |||
@@ -21,8 +21,8 @@ static Eina_Bool _add(void *data, int type, Ecore_Con_Event_Server_Add *ev) | |||
21 | 21 | ||
22 | static Eina_Bool _data(void *data, int type, Ecore_Con_Event_Server_Data *ev) | 22 | static Eina_Bool _data(void *data, int type, Ecore_Con_Event_Server_Data *ev) |
23 | { | 23 | { |
24 | // globals *ourGlobals = data; | 24 | globals *ourGlobals = data; |
25 | // char buf[PATH_MAX]; | 25 | char buf[PATH_MAX]; |
26 | char SID[PATH_MAX]; | 26 | char SID[PATH_MAX]; |
27 | const char *command; | 27 | const char *command; |
28 | char *ext; | 28 | char *ext; |
@@ -39,23 +39,19 @@ static Eina_Bool _data(void *data, int type, Ecore_Con_Event_Server_Data *ev) | |||
39 | ext = index(SID, '.'); | 39 | ext = index(SID, '.'); |
40 | if (ext) | 40 | if (ext) |
41 | { | 41 | { |
42 | ext[0] = '\0'; | 42 | ext[0] = '\0'; |
43 | command = ext + 1; | 43 | command = ext + 1; |
44 | if (0 == strncmp(command, "llOwnerSay(", 11)) | 44 | if ((0 == strncmp(command, "llOwnerSay(", 11)) |
45 | { | 45 | || (0 == strncmp(command, "llWhisper(", 10)) |
46 | PI("Saying to owner from %s - %s", SID, command); | 46 | || (0 == strncmp(command, "llSay(", 6)) |
47 | } | 47 | || (0 == strncmp(command, "llShout(", 8))) |
48 | else if (0 == strncmp(command, "llWhisper(", 10)) | ||
49 | { | ||
50 | PI("Whispering from %s - %s", SID, command); | ||
51 | } | ||
52 | else if (0 == strncmp(command, "llSay(", 6)) | ||
53 | { | ||
54 | PI("Saying from %s - %s", SID, command); | ||
55 | } | ||
56 | else if (0 == strncmp(command, "llShout(", 8)) | ||
57 | { | 48 | { |
58 | PI("Shouting from %s - %s", SID, command); | 49 | int _M; |
50 | |||
51 | sprintf(buf, "%s: %s", SID, command); | ||
52 | lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name); | ||
53 | _M = lua_gettop(ourGlobals->purkle->L); | ||
54 | push_lua(ourGlobals->purkle->L, "@ ( $ )", _M, "append", buf, 0); | ||
59 | } | 55 | } |
60 | else if (0 == strncmp(command, "llDialog(", 9)) | 56 | else if (0 == strncmp(command, "llDialog(", 9)) |
61 | { | 57 | { |