aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 09:04:57 +1000
committerDavid Walter Seikel2014-05-14 09:04:57 +1000
commit272179c8679037c974e44d654b059d0c0358a16b (patch)
tree79d14e8b24196adfa97cd3a9945ee66a84e59ed7 /src
parentImplement a half arsed touch_start() from extantz. (diff)
downloadSledjHamr-272179c8679037c974e44d654b059d0c0358a16b.zip
SledjHamr-272179c8679037c974e44d654b059d0c0358a16b.tar.gz
SledjHamr-272179c8679037c974e44d654b059d0c0358a16b.tar.bz2
SledjHamr-272179c8679037c974e44d654b059d0c0358a16b.tar.xz
llSay() and friends log if no where to send them.
Diffstat (limited to 'src')
-rw-r--r--src/love/love.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/love/love.c b/src/love/love.c
index 5fe3c84..75d0e36 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -315,25 +315,35 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e
315 else if (0 == strcmp(command, "llGetInventoryName(7, 0)")) 315 else if (0 == strcmp(command, "llGetInventoryName(7, 0)"))
316 sendForth(ourGlobals->serverLuaSL, SID, "return \".MENUITEMS\""); 316 sendForth(ourGlobals->serverLuaSL, SID, "return \".MENUITEMS\"");
317 // Send "back" stuff on to the one and only client. 317 // Send "back" stuff on to the one and only client.
318 // TODO - All of these output functions should just use one thing to append stuff to either local or an IM tab.
319 // Love filtering out stuff that should not go there.
320 // Extantz registering any channel it wants to listen to, mostly for client side scripts.
321 // Extantz is then only responsible for the registered channels, it can do what it likes with them.
322 // Dialogs, notifications, and other stuff goes through some other functions.
318 else if (0 == strncmp(command, "llOwnerSay(", 11)) 323 else if (0 == strncmp(command, "llOwnerSay(", 11))
319 { 324 {
320 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 325 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
326 else PW("No where to send %s", command);
321 } 327 }
322 else if (0 == strncmp(command, "llWhisper(", 10)) 328 else if (0 == strncmp(command, "llWhisper(", 10))
323 { 329 {
324 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 330 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
331 else PW("No where to send %s", command);
325 } 332 }
326 else if (0 == strncmp(command, "llSay(", 6)) 333 else if (0 == strncmp(command, "llSay(", 6))
327 { 334 {
328 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 335 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
336 else PW("No where to send %s", command);
329 } 337 }
330 else if (0 == strncmp(command, "llShout(", 8)) 338 else if (0 == strncmp(command, "llShout(", 8))
331 { 339 {
332 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 340 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
341 else PW("No where to send %s", command);
333 } 342 }
334 else if (0 == strncmp(command, "llDialog(", 9)) 343 else if (0 == strncmp(command, "llDialog(", 9))
335 { 344 {
336 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 345 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
346 else PW("No where to send %s", command);
337 } 347 }
338 else 348 else
339 PI("Script %s sent command %s", SID, command); 349 PI("Script %s sent command %s", SID, command);