diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-04-23 11:36:27 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-04-23 11:36:27 +0000 |
commit | dd13e3c81400c3607a4f63a501b53b46052035ab (patch) | |
tree | ccd0de10427f8a4e09b0b4bbc6c7cdf840711b16 /plugins/SmileyAdd/src/services.cpp | |
parent | 6db82178f9864a273287fc5d3c8cd979b91d8c18 (diff) |
SmileyAdd:
add per protocol global smiley packs support
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/services.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/services.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index 904da99971..a06f5468ba 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -49,7 +49,13 @@ SmileyPackType* GetSmileyPack(const char* proto, MCONTACT hContact, SmileyPackCT categoryName = dbv.ptszVal;
db_free(&dbv);
}
- else categoryName = A2T_SM(protonam);
+ else if (opt.UsePhysProto && db_get_ts(NULL, protonam, "AM_BaseProto", &dbv) == 0){
+ categoryName = _T("AllProto");
+ categoryName += dbv.ptszVal;
+ db_free(&dbv);
+ }
+ else
+ categoryName = A2T_SM(protonam);
}
}
}
|