diff options
author | George Hazan <george.hazan@gmail.com> | 2024-08-21 18:28:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-08-21 18:28:19 +0300 |
commit | 554e36b61dcaf27ba0ca811b423fe4a7d4e2b073 (patch) | |
tree | 1ad76ab081a9e3802d65dc44182124fc000013ee /plugins/SmileyAdd/src | |
parent | c8fda9a3250d3a14545b3dbdc705ca629909415a (diff) |
fixes #4587 (SmileyAdd: remove ICQ support)
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r-- | plugins/SmileyAdd/src/smileys.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/plugins/SmileyAdd/src/smileys.cpp b/plugins/SmileyAdd/src/smileys.cpp index 8c9d3a44b7..aba608cc47 100644 --- a/plugins/SmileyAdd/src/smileys.cpp +++ b/plugins/SmileyAdd/src/smileys.cpp @@ -865,24 +865,11 @@ void SmileyCategoryListType::DeleteAccountAsCategory(PROTOACCOUNT *acc) void SmileyCategoryListType::AddContactTransportAsCategory(MCONTACT hContact, const CMStringW &defaultFile)
{
- char *proto = Proto_GetBaseAccountName(hContact);
- if (proto == nullptr)
- return;
-
- CMStringW displayName(db_get_wsm(hContact, proto, "Transport"));
- if (displayName.IsEmpty())
- return;
-
- char *trsp = mir_u2a(displayName);
- _strlwr(trsp);
-
- const char *packname = nullptr;
- if (strstr(trsp, "icq") != nullptr)
- packname = "icq";
-
- mir_free(trsp);
-
- AddCategory(displayName, displayName, smcTransportProto, defaultFile);
+ if (char *proto = Proto_GetBaseAccountName(hContact)) {
+ CMStringW displayName(db_get_wsm(hContact, proto, "Transport"));
+ if (!displayName.IsEmpty())
+ AddCategory(displayName, displayName, smcTransportProto, defaultFile);
+ }
}
void SmileyCategoryListType::AddAllProtocolsAsCategory(void)
|