diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-20 19:32:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-20 19:32:28 +0300 |
commit | 999d22f6c3c618cde52097547e53703664d7e665 (patch) | |
tree | 651589d4660b8346729c12f0bea93d0570fba1e3 /plugins/MirLua/src | |
parent | 601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff) |
db_event_delete: unused parameter removed
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/Modules/m_database.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MirLua/src/Modules/m_database.cpp b/plugins/MirLua/src/Modules/m_database.cpp index c3df7db49e..d4f5a051be 100644 --- a/plugins/MirLua/src/Modules/m_database.cpp +++ b/plugins/MirLua/src/Modules/m_database.cpp @@ -341,10 +341,9 @@ static int db_AddEvent(lua_State *L) static int db_DeleteEvent(lua_State *L) { - MCONTACT hContact = luaL_optinteger(L, 1, 0); - MEVENT hDbEvent = luaL_checkinteger(L, 2); + MCONTACT hDbEvent = luaL_optinteger(L, 1, 0); - int res = db_event_delete(hContact, hDbEvent); + int res = db_event_delete(hDbEvent); lua_pushboolean(L, res == 0); return 1; |