summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
commit999d22f6c3c618cde52097547e53703664d7e665 (patch)
tree651589d4660b8346729c12f0bea93d0570fba1e3 /plugins/MirLua/src
parent601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff)
db_event_delete: unused parameter removed
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/Modules/m_database.cpp5
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;