Skip to content

Commit

Permalink
push-notification-driver-lua: Rename keywords_set and keywors_clear t…
Browse files Browse the repository at this point in the history
…o keywords

This is more concince since these are the keywords being operated on.
  • Loading branch information
cmouse authored and villesavolainen committed Feb 6, 2019
1 parent 7e839e0 commit e0236ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/push-notification/push-notification-driver-lua.c
Expand Up @@ -300,7 +300,7 @@ push_notification_lua_push_flagsclear(const struct push_notification_txn_event *
if (array_is_created(&data->keywords_clear)) {
const char *const *kw = array_get(&data->keywords_clear, &size);
dlua_pushkeywords(script, kw, size);
lua_setfield(script->L, -2, "keywords_clear");
lua_setfield(script->L, -2, "keywords");
}

if (array_is_created(&data->keywords_old)) {
Expand All @@ -324,7 +324,7 @@ push_notification_lua_push_flagsset(const struct push_notification_txn_event *ev
if (array_is_created(&data->keywords_set)) {
const char *const *kw = array_get(&data->keywords_set, &size);
dlua_pushkeywords(script, kw, size);
lua_setfield(script->L, -2, "keywords_set");
lua_setfield(script->L, -2, "keywords");
}
}

Expand Down

0 comments on commit e0236ca

Please sign in to comment.