send_tick: set "first" field (#3271)

According to the docs, the tick event should return:
    {
     "first": false,
     "payload": "arbitrary string"
    }
next
Orestis 2018-04-28 15:47:28 +03:00 committed by Michael Stapelberg
parent 5813525c62
commit 6f11b6fa4a
1 changed files with 3 additions and 0 deletions

View File

@ -1127,6 +1127,9 @@ IPC_HANDLER(send_tick) {
y(map_open);
ystr("first");
y(bool, false);
ystr("payload");
yajl_gen_string(gen, (unsigned char *)message, message_size);