It would have helped if you gave more details in the first place. It looks like you're downloading file via DCC from channel, that there is a bot sending you the result from a research in a query window, it looks like you want to replace the query windows by just having the result displayed in the channel window, is that right?