diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-12-31 16:39:13 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-12-31 16:39:13 +0000 |
commit | ec3799465bc97a61ad3291875abf39f10fb1bebd (patch) | |
tree | 266a9dbb6a1bcc45aeb9fcea8b8647ad150c9ecf /plugins/MirLua/src/m_database.cpp | |
parent | 9c34f77ebf742ae0d13df3e43581fe86e0d85d5e (diff) |
MirLua: fixed script loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@15978 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_database.cpp')
-rw-r--r-- | plugins/MirLua/src/m_database.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp index c631715c49..7eaaba3a8b 100644 --- a/plugins/MirLua/src/m_database.cpp +++ b/plugins/MirLua/src/m_database.cpp @@ -42,7 +42,7 @@ static int lua_ContactIterator(lua_State *L) return 1;
}
-static int lua_AllContacts(lua_State *L)
+static int lua_Contacts(lua_State *L)
{
const char *szProto = lua_tostring(L, 1);
@@ -176,7 +176,7 @@ static int lua_EventIterator(lua_State *L) return 1;
}
-static int lua_AllEvents(lua_State *L)
+static int lua_Events(lua_State *L)
{
MCONTACT hContact = luaL_checkinteger(L, 1);
@@ -208,7 +208,7 @@ static int lua_EventReverseIterator(lua_State *L) return 1;
}
-static int lua_AllEventsFromEnd(lua_State *L)
+static int lua_EventsFromEnd(lua_State *L)
{
MCONTACT hContact = luaL_checkinteger(L, 1);
@@ -548,7 +548,8 @@ static luaL_Reg databaseApi[] = {
{ "FindFirstContact", lua_FindFirstContact },
{ "FindNextContact", lua_FindNextContact },
- { "AllContacts", lua_AllContacts },
+ { "AllContacts", lua_Contacts },
+ { "Contacts", lua_Contacts },
{ "GetEventCount", lua_GetEventCount },
@@ -556,8 +557,10 @@ static luaL_Reg databaseApi[] = { "GetPrevEvent", lua_GetPrevEvent },
{ "GetNextEvent", lua_GetNextEvent },
{ "GetLastEvent", lua_GetLastEvent },
- { "AllEvents", lua_AllEvents },
- { "AllEventsFromEnd", lua_AllEventsFromEnd },
+ { "AllEvents", lua_Events },
+ { "Events", lua_Events },
+ { "AllEventsFromEnd", lua_EventsFromEnd },
+ { "EventsFromEnd", lua_EventsFromEnd },
{ "GetEvent", lua_GetEvent },
|