summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/init.c2
-rw-r--r--src/emap/script_buildins.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index c8d0ac8..c1c6dd8 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -246,7 +246,7 @@ HPExport void plugin_init (void)
addScriptCommand("bgnew", "siiss", bgnew);
addScriptCommand("bgjoin", "isii?", bgjoin);
addScriptCommand("apicall", "is", apicall);
- addScriptCommand("apiasync", "s", apiasync);
+ addScriptCommand("apiasync", "ss", apiasync);
// Overrides
addScriptCommand("debugmes","v*",debugmes);
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 1a34958..540d59a 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -3624,7 +3624,9 @@ BUILDIN(apicall)
BUILDIN(apiasync)
{
#ifdef PYTHON_LOGS
- logs->pylog(script_getstr(st, 2));
+ char bf1[2048];
+ sprintf(bf1, "%s→%s", script_getstr(st, 2), script_getstr(st, 3));
+ logs->pylog(bf1);
script_pushint(st, 1);
#else
script_pushint(st, 0);