mmh i don't know... i just want to know the technique behind the command... but if the source is included already, i will have a look there! sorry and thx!
If you want to respond to "where are you" in a query, you need a msg or msgm bind. Msg binds are only one word, msgm binds can be multiple words.
To get a list of the channels the bot is on, you need to use the 'channels' command.
To send a message back to the user, you need the 'putserv' command.
One thing that might help you is to download some scripts and look at how they do things. Once you see some examples of binds and procs, it's pretty easy.