summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-29 20:16:11 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-29 20:16:11 +0000
commite57ba22d8dd05efc14197c764daed53e61a59636 (patch)
tree5467130348fe77c5fd257be6ff4da4aca6ab2afa /plugins/MirLua
parent1f41b628e19c00efa1a168a0f5a5ae71bd93b09b (diff)
MirLua: fix PROTOACCOUNT __index method
git-svn-id: http://svn.miranda-ng.org/main/trunk@15651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index d814a40a1b..911c699e33 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -392,17 +392,17 @@ static int pa__index(lua_State *L)
if (mir_strcmpi(key, "ModuleName") == 0)
lua_pushstring(L, ptrA(mir_utf8encode(pa->szModuleName)));
- if (mir_strcmpi(key, "AccountName") == 0)
+ else if (mir_strcmpi(key, "AccountName") == 0)
lua_pushstring(L, ptrA(mir_utf8encodeT(pa->tszAccountName)));
- if (mir_strcmpi(key, "ProtoName") == 0)
+ else if (mir_strcmpi(key, "ProtoName") == 0)
lua_pushstring(L, ptrA(mir_utf8encode(pa->szProtoName)));
- if (mir_strcmpi(key, "IsEnabled") == 0)
+ else if (mir_strcmpi(key, "IsEnabled") == 0)
lua_pushboolean(L, pa->bIsEnabled);
- if (mir_strcmpi(key, "IsVisible") == 0)
+ else if (mir_strcmpi(key, "IsVisible") == 0)
lua_pushboolean(L, pa->bIsVisible);
- if (mir_strcmpi(key, "IsVirtual") == 0)
+ else if (mir_strcmpi(key, "IsVirtual") == 0)
lua_pushboolean(L, pa->bIsVirtual);
- if (mir_strcmpi(key, "IsOldProto") == 0)
+ else if (mir_strcmpi(key, "IsOldProto") == 0)
lua_pushboolean(L, pa->bOldProto);
else
lua_pushnil(L);