Here is an example, of course you will have to change the style, that it displays, to fit your taste.
amsg {
var %i = 1
while (%i <= $chan(0)) {
var %c = $chan(%i)
if ($me ison %c) {
echo %c < $+ $left($nick(%c,$me).pnick,1) $+ $me $+ > $1-
.msg %c $1-
}
inc %i
}
}