diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-04 21:32:15 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-04 21:32:15 +0000 |
commit | c5264c855d9576c0580af5c60f71ff1ebf2e1d42 (patch) | |
tree | 680b05129bc79ea578e7db87d14e01f65f33e68f /plugins/SimpleStatusMsg/src/main.cpp | |
parent | da6b969a01def44518afd0055a4bc53c648228db (diff) |
fix for the locked protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@2199 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleStatusMsg/src/main.cpp')
-rw-r--r-- | plugins/SimpleStatusMsg/src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp index ca92ffbd7c..fca9393f51 100644 --- a/plugins/SimpleStatusMsg/src/main.cpp +++ b/plugins/SimpleStatusMsg/src/main.cpp @@ -1664,7 +1664,6 @@ static int ChangeStatusMsgPrebuild(WPARAM wParam, LPARAM lParam) for (i = 0; i < count; ++i)
{
char szSetting[80];
- TCHAR szBuffer[256];
int iProtoFlags;
if (!IsAccountEnabled(pa[i]))
@@ -1684,9 +1683,9 @@ static int ChangeStatusMsgPrebuild(WPARAM wParam, LPARAM lParam) if (iProtoFlags & PROTO_NO_MSG || iProtoFlags & PROTO_THIS_MSG)
continue;
- if (DBGetContactSettingByte(NULL, pa[i]->szModuleName, "LockMainStatus", 0) &&
- CallService(MS_SYSTEM_GETVERSION, 0, 0) >= PLUGIN_MAKE_VERSION(0, 9, 0, 10))
+ if (CallService(MS_PROTO_ISACCOUNTLOCKED,0,(LPARAM)pa[i]->szModuleName))
{
+ TCHAR szBuffer[256];
mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s (locked)"), pa[i]->tszAccountName);
mi.ptszPopupName = szBuffer;
}
|