/help ON OPEN

Code:
on *:open:?:*:/msg $nick Hi $nick

When someone messages you and it opens up a query window it will message that person. If you want to send the message when you manually open up a query window then you will have to create an alias like this:
Code:
alias query {
  if ($2) { query $$1 $2- }
  else { 
    query $$1
    msg $$1 Hi $$1
  }
}