diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-15 18:35:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-15 18:35:28 +0300 |
commit | 436e303e24e5046d6cc52ac3da51a0b51adbef36 (patch) | |
tree | 4f7d3b27ad24e710dae845558e2d719b54d1d88a /plugins/MirLua/src | |
parent | f0d86d413859d402331b49b98db7d61fef801489 (diff) |
simpler way of applying server ids to messages
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/Modules/m_database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/Modules/m_database.cpp b/plugins/MirLua/src/Modules/m_database.cpp index d4f5a051be..f00887a7da 100644 --- a/plugins/MirLua/src/Modules/m_database.cpp +++ b/plugins/MirLua/src/Modules/m_database.cpp @@ -327,10 +327,10 @@ static int db_AddEvent(lua_State *L) { MCONTACT hContact = luaL_optinteger(L, 1, 0); - DBEVENTINFO dbei; + DBEVENTINFO dbei = {}; MakeDbEvent(L, dbei); - MEVENT hDbEvent = db_event_add(hContact, &dbei); + MEVENT hDbEvent = db_event_add(hContact, &dbei); if (hDbEvent) lua_pushnumber(L, hDbEvent); else |