From c5264c855d9576c0580af5c60f71ff1ebf2e1d42 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 4 Nov 2012 21:32:15 +0000 Subject: fix for the locked protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@2199 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SimpleStatusMsg/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/SimpleStatusMsg/src/main.cpp') 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; } -- cgit v1.2.3