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_protocols.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_protocols.cpp')
-rw-r--r-- | plugins/MirLua/src/m_protocols.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp index 530f4343a4..ecbfe477b8 100644 --- a/plugins/MirLua/src/m_protocols.cpp +++ b/plugins/MirLua/src/m_protocols.cpp @@ -44,7 +44,7 @@ static int lua_ProtocolIterator(lua_State *L) return 1;
}
-static int lua_AllProtocols(lua_State *L)
+static int lua_Protocols(lua_State *L)
{
int count;
PROTOCOLDESCRIPTOR** protos;
@@ -145,7 +145,7 @@ static int lua_AccountIterator(lua_State *L) return 1;
}
-static int lua_AllAccounts(lua_State *L)
+static int lua_Accounts(lua_State *L)
{
int count;
PROTOACCOUNT** accounts;
@@ -307,12 +307,14 @@ static luaL_Reg protocolsApi[] = {
{ "GetProto", lua_GetProtocol },
{ "GetProtocol", lua_GetProtocol },
- { "AllProtos", lua_AllProtocols },
- { "AllProtocols", lua_AllProtocols },
+ { "AllProtos", lua_Protocols },
+ { "AllProtocols", lua_Protocols },
+ { "Protocols", lua_Protocols },
{ "EnumProtos", lua_EnumProtos },
{ "GetAccount", lua_GetAccount },
- { "AllAccounts", lua_AllAccounts },
+ { "AllAccounts", lua_Accounts },
+ { "Accounts", lua_Accounts },
{ "EnumAccounts", lua_EnumAccounts },
{ "OnProtoAck", lua_OnProtoAck },
|