diff options
-rw-r--r-- | src/mir_app/src/protocols.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mir_app/src/protocols.cpp b/src/mir_app/src/protocols.cpp index a61a45f930..dca0f5bed1 100644 --- a/src/mir_app/src/protocols.cpp +++ b/src/mir_app/src/protocols.cpp @@ -371,9 +371,12 @@ MIR_APP_DLL(int) ProtoServiceExists(const char *szModule, const char *szService) if (szModule == NULL || szService == NULL)
return false;
- TServiceListItem *item = (TServiceListItem*)bsearch(&szService, serviceItems, _countof(serviceItems), sizeof(serviceItems[0]), CompareServiceItems);
- if (item != NULL)
- return true;
+ PROTOACCOUNT *pa = Proto_GetAccount(szModule);
+ if (pa && !pa->bOldProto) {
+ TServiceListItem *item = (TServiceListItem*)bsearch(&szService, serviceItems, _countof(serviceItems), sizeof(serviceItems[0]), CompareServiceItems);
+ if (item != NULL)
+ return true;
+ }
char str[MAXMODULELABELLENGTH * 2];
strncpy_s(str, szModule, _TRUNCATE);
|