Bira I have a small problem with that hack:
when I do

riv_sendprivmsg
$message[message]
And replace it with:
$privmessage
that does not include the quotes when I reply.
When I do: $message[message] $privmessage
that include the quotes but in the new text box if you want to preview, it displays it twice.
How can I fix?
never mind... I was missing a line in private php
if (!isset($privmessage)) {
$privmessage = $message[message];
}