Skip to content

Commit

Permalink
push-notification-driver-lua: Add keywords and flags to MessageNew event
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and villesavolainen committed Feb 6, 2019
1 parent e0236ca commit 982c77d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/push-notification/push-notification-driver-lua.c
Expand Up @@ -386,6 +386,12 @@ push_notification_lua_push_messagenew(const struct push_notification_txn_event *

lua_pushstring(script->L, data->snippet);
lua_setfield(script->L, -2, "snippet");

dlua_pushflags(script, data->flags);
lua_setfield(script->L, -2, "flags");

dlua_pushkeywords(script, data->keywords, str_array_length(data->keywords));
lua_setfield(script->L, -2, "keywords");
}

/* events that need special treatment */
Expand Down

0 comments on commit 982c77d

Please sign in to comment.