From e0236ca0f248d5ba58f780f31990dc9f2b65410c Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 7 Jan 2019 19:48:11 +0200 Subject: [PATCH] push-notification-driver-lua: Rename keywords_set and keywors_clear to keywords This is more concince since these are the keywords being operated on. --- src/plugins/push-notification/push-notification-driver-lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/push-notification/push-notification-driver-lua.c b/src/plugins/push-notification/push-notification-driver-lua.c index 78b374de88..b97c5888a6 100644 --- a/src/plugins/push-notification/push-notification-driver-lua.c +++ b/src/plugins/push-notification/push-notification-driver-lua.c @@ -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)) { @@ -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"); } }