It would help if you'd supply an example of a message from L/Q that is one that you'd want displayed. In the meantime, I think the following would work
on *:notice:*:*:{
if ($nick == L) || ($nick == Q) {
.msg $active $nick $1-
}
}
If you want to see the messages, but don't want to send them to the channel, change
to
I included the $nick identifier so that you would be able to tell if the message came from L or Q .
Star Trek moment? L = Lwaxana (Troi), Q (John DeLancie) -- maybe?