Ok that works but what I forgot to mention was I have custom windows made:

@ChanServ
@NickServ
@MemoServ

If this makes sense I want any commands sent by "/msg" from either the status, channel , or query windows to instead be forced to come from their designated windows

Example:

If a user types any commands to chanserv from any window a message saying "to send commands to chanserv must come from the @chanserv window" and it wont send unless it comes from the @chanserv window

same thing goes for the others...

I apologize if this seems confusing