perhaps you want /filter with the -fk switches, where the -k replaces the output file/window with an alias
https://en.wikichip.org/wiki/mirc/commands/filter