/help on text
if the line looks like the one you posted, then you would grab the line written to the channel with $2- , $1- would return everything in the line, so try it:
on *:TEXT:*:#: {
echo -a --------
echo -a $1 -> $2 -> $3 -> $4
echo -a --------
echo -a $2-
echo -a --------
echo -a $1-
}
The code goes in to your remote, "ALT + R" in your mirc, paste it in a empty file there.
/help /write
will explain how to write the text to a file.
You grab the text by use: if (Swear-word isin $1-) { do stuff }
or you can use $2- or $3- or what ever.