my gibberish "origin window" is meant like this:

Joe does a ctcp to me --> i see the message on joe's query window

Joe does a ctcp to #channel --> i see the message on #channel

just like if all this wasn't scripted but handled normally by mirc, but with that script up above.