summaryrefslogtreecommitdiff
path: root/plugins/Actman
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Actman')
-rw-r--r--plugins/Actman/actman.dpr2
-rw-r--r--plugins/Actman/iac_inout.pas9
2 files changed, 9 insertions, 2 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr
index c33478a021..bd2e759ccc 100644
--- a/plugins/Actman/actman.dpr
+++ b/plugins/Actman/actman.dpr
@@ -185,7 +185,7 @@ var
ccs:PCCSDATA;
begin
ccs := PCCSDATA(lParam);
- result := CallContactService(ccs^.hContact, ccs^.szProtoService, ccs^.wParam, ccs^.lParam);
+ result := Proto_ChainSend(0, ccs);
end;
function DoOpenUrl(wParam:WPARAM;lParam:LPARAM):int;cdecl;
diff --git a/plugins/Actman/iac_inout.pas b/plugins/Actman/iac_inout.pas
index b5fcbb466a..0626de08f2 100644
--- a/plugins/Actman/iac_inout.pas
+++ b/plugins/Actman/iac_inout.pas
@@ -88,6 +88,7 @@ var
tmp:PWideChar;
blob,p:PAnsiChar;
w:PWideChar;
+ ccs:TCCSDATA;
hContact:TMCONTACT;
wnd:HWND;
fexist:bool;
@@ -272,7 +273,13 @@ begin
if DBReadByte(hContact,p,'ChatRoom',0)<>1 then
begin
WidetoUTF8(last,blob);
- CallContactService(hContact,PSS_MESSAGE,0,tlparam(blob));
+
+ ccs.hContact := hContact;
+ ccs.szProtoService := PSS_MESSAGE;
+ ccs.wParam := 0;
+ ccs.lParam := tlparam(blob);
+ Proto_ChainSend(0, @ccs);
+
dbei.cbSize :=sizeof(dbei);
dbei.cbBlob :=StrLen(blob);
dbei.pBlob :=pByte(blob);