From 71eed5c34ccecc674b45f9d9c06154c5137f6e90 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Oct 2012 14:16:12 +0000 Subject: compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@1816 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ImportTXT/General.pas | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/ImportTXT/General.pas b/plugins/ImportTXT/General.pas index 3f373c618c..637a394e18 100644 --- a/plugins/ImportTXT/General.pas +++ b/plugins/ImportTXT/General.pas @@ -336,16 +336,13 @@ begin CallService(MS_PROTO_ENUMACCOUNTS, int(@iProtoCount), int(@ppAccounts)); for i := 1 to iProtoCount do begin - if (ppAccounts^^._type = PROTOTYPE_PROTOCOL) then + temps := GetContactID(0, ppAccounts^^.szModuleName, false); + if temps <> '' then begin - temps := GetContactID(0, ppAccounts^^.szModuleName, false); - if temps <> '' then - begin - Protocols[ProtoCount].ProtoName := ppAccounts^^.szModuleName; - Protocols[ProtoCount].ProtoUID := temps; - Protocols[ProtoCount].ProtoNick := GetContactNick(0, ppAccounts^^.szModuleName, false); - inc(ProtoCount); - end; + Protocols[ProtoCount].ProtoName := ppAccounts^^.szModuleName; + Protocols[ProtoCount].ProtoUID := temps; + Protocols[ProtoCount].ProtoNick := GetContactNick(0, ppAccounts^^.szModuleName, false); + inc(ProtoCount); end; inc(ppAccounts); end; -- cgit v1.2.3