From c1a1d6581d6ab5e4faeac5397fdf2682c9605b8c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 17 May 2014 07:53:40 +1000 Subject: More debugging removal. --- src/purkle/purkle.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/purkle/purkle.c') diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c index 01053fe..62f78a2 100644 --- a/src/purkle/purkle.c +++ b/src/purkle/purkle.c @@ -56,14 +56,15 @@ static int say(lua_State *L) char *name = "", *id = NULL, *text = NULL, buf[PATH_MAX]; int channel; -printf("PURKLE.SAY .....\n"); // TODO - Should include origin and distance? pull_lua(L, 1, "%channel $name $id $text", &channel, &name, &id, &text); if (id && text) { - snprintf(buf, sizeof(buf), "events.listen(%d, %s, %s, %s)", channel, name, id, text); -printf("PURKLE.SAY -%s.%s\n", id, buf); - if (server) sendForth(server, id, buf); + snprintf(buf, sizeof(buf), "events.listen(%d, '%s', '%s', '%s')", channel, name, id, text); + if (server) + sendForth(server, id, buf); + else + printf("PURKLE NOT SAY, no where to send %s", buf); } return 0; } -- cgit v1.1