if Length(AScript) = 0 then Exit;
YenETrans;
AScript := ScriptTransForSSTP(AScript, Err);
- if AScript = '' then
+ if Err <> '' then
begin
ShowMessage(Err);
Exit;
Exit;
end;
+ YenETrans;
+ Talk := GetScriptText;
+ Err := DoTrans(Talk, [toWarnMessySurface, toWarnCheck]);
+ if Err <> '' then begin
+ MessageDlg(Err, mtWarning, [mbOk], 0);
+ Exit;
+ end;
+
if Pref.NeedConfirmBeforeSend and FScriptModified then begin
MessageDlg('\91\97\90M\91O\82É\83\8d\81[\83J\83\8b\8am\94F\82µ\82Ä\82\82¾\82³\82¢\81B', mtError, [mbOk], 0);
Exit;
if not SendConfirmDialog(FNowChannel, cbxTargetGhost.Text) then Exit;
end;
- YenETrans;
- Talk := GetScriptText;
- Err := DoTrans(Talk, [toWarnMessySurface, toWarnCheck]);
- if Err <> '' then begin
- MessageDlg(Err, mtWarning, [mbOk], 0);
- Exit;
- end;
Command := nil;
Ghost := '';
if cbxTargetGhost.ItemIndex > 0 then Ghost := cbxTargetGhost.Text;