This will send the output from the given command to the specified nickname, channel, or started process. For example:
redirect #Har /whois bigcheeseThis sends the result of "whois bigcheese" to channel #Har. There is an implicit wait built into the REDIRECT command. This means that all output will be redirected until the given command has finished executing. This can have some unpredictable results, so use it with caution. If you want to redirect output to a dcc/chat connection then specify the last form REDIRECT =nick command. If the nickname|channel is given as the char "*" output will be redirected to the current channel.