summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-08 14:16:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-08 14:16:12 +0000
commit71eed5c34ccecc674b45f9d9c06154c5137f6e90 (patch)
tree53118ef7dbefa57547eb63e85826c8b16fda3a5e /plugins
parentf0bd063132bfee8c31b44c2720e4ec3a9374436c (diff)
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@1816 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ImportTXT/General.pas15
1 files changed, 6 insertions, 9 deletions
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;