diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-01 19:37:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-01 19:37:35 +0000 |
commit | 754c5e27f878dc4a46131593e00e78e054faa995 (patch) | |
tree | e49b137bf04d56c58c50f5fb1760a6cf84bca658 /plugins/SecureIM/src/crypt_lists.cpp | |
parent | 14ad5bd238bb3fb2edf8284a1c35f175e2f31d5f (diff) |
SecureIM:
- thread cleaning;
- fix SRMM status icon;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r-- | plugins/SecureIM/src/crypt_lists.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp index 30f6c432d8..5c89f4d2e9 100644 --- a/plugins/SecureIM/src/crypt_lists.cpp +++ b/plugins/SecureIM/src/crypt_lists.cpp @@ -65,7 +65,7 @@ void freeSupportedProtocols() pSupPro getSupPro(HANDLE hContact)
{
for (int j=0; j < arProto.getCount(); j++)
- if ( CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)arProto[j]->name))
+ if (CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)arProto[j]->name))
return arProto[j];
return NULL;
@@ -86,7 +86,7 @@ pUinKey addContact(HANDLE hContact) p->proto = proto;
p->mode = db_get_b(hContact, MODULENAME, "mode", 99);
if (p->mode == 99) {
- if ( isContactPGP(hContact))
+ if (isContactPGP(hContact))
p->mode = MODE_PGP;
else
p->mode = isContactGPG(hContact) ? MODE_GPG : MODE_RSAAES;
@@ -162,16 +162,15 @@ pUinKey getUinCtx(HANDLE cntx) }
// add message to user queue for send later
-void addMsg2Queue(pUinKey ptr,WPARAM wParam,LPSTR szMsg) {
-
-#if defined(_DEBUG) || defined(NETLIB_LOG)
+void addMsg2Queue(pUinKey ptr,WPARAM wParam,LPSTR szMsg)
+{
Sent_NetLog("addMsg2Queue: msg: -----\n%s\n-----\n",szMsg);
-#endif
+
pWM ptrMessage;
EnterCriticalSection(&localQueueMutex);
- if (ptr->msgQueue==NULL){
+ if (ptr->msgQueue == NULL){
// create new
ptr->msgQueue = (pWM) mir_alloc(sizeof(struct waitingMessage));
ptrMessage = ptr->msgQueue;
@@ -221,8 +220,8 @@ void getContactUinA(HANDLE hContact, LPSTR szUIN) DBVARIANT dbv_uniqueid;
LPSTR uID = (LPSTR) CallProtoService(ptr->name, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
- if ( uID==(LPSTR)CALLSERVICE_NOTFOUND ) uID = 0; // Billy_Bons
- if ( uID && DBGetContactSetting(hContact, ptr->name, uID, &dbv_uniqueid)==0 ) {
+ if (uID == (LPSTR)CALLSERVICE_NOTFOUND ) uID = 0; // Billy_Bons
+ if (uID && DBGetContactSetting(hContact, ptr->name, uID, &dbv_uniqueid) == 0) {
if (dbv_uniqueid.type == DBVT_WORD)
sprintf(szUIN, "%u [%s]", dbv_uniqueid.wVal, ptr->name);
else if (dbv_uniqueid.type == DBVT_DWORD)
@@ -232,7 +231,7 @@ void getContactUinA(HANDLE hContact, LPSTR szUIN) else
sprintf(szUIN, "%s [%s]", dbv_uniqueid.pszVal, ptr->name);
}
- else strcpy(szUIN, "=== unknown ===");
+ else strcpy(szUIN, " == = unknown == =");
db_free(&dbv_uniqueid);
}
|