From e624b1dcc719be421ed8530885ca1b259fe59fdf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 Mar 2014 09:15:41 +0000 Subject: PROTOACCOUNT::bIsVirtual - new flag to mark virtual protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@8609 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/protocols/protocols.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/protocols/protocols.cpp') diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 0191d62d7c..b93b9dc25a 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -120,11 +120,12 @@ static INT_PTR Proto_RegisterModule(WPARAM, LPARAM lParam) pa->szModuleName = mir_strdup(pd->szName); pa->szProtoName = mir_strdup(pd->szName); pa->tszAccountName = mir_a2t(pd->szName); - pa->bIsVisible = pa->bIsEnabled = TRUE; + pa->bIsVisible = pa->bIsEnabled = true; + pa->bIsVirtual = (p->type == PROTOTYPE_VIRTUAL); pa->iOrder = accounts.getCount(); accounts.insert(pa); } - pa->bOldProto = TRUE; + pa->bOldProto = true; pa->ppro = ppi; p->fnInit = defInitProto; p->fnUninit = FreeDefaultAccount; -- cgit v1.2.3