BobboHobbo
2008-07-15 09:31:56
Same as InChat just with a TStringArray.
Use: InChatMulti(['hello','hi','yo','sup','hey'])
Use: InChatMulti(['hello','hi','yo','sup','hey'])
function InChatMulti(Text: TStringArray): Boolean;
var
s: string;
i, n: Integer;
begin
if (not (GetLastChatText(s))) then
LastChatter(s);
n := Length(Text) - 1;
for i := 0 to n do
if (Pos(Text[i], s) <> 0) then
begin
Result := True;
Exit;
end;
end;