You can also use $nick().pnick for that, it returns nickname with it's prefix on a channel.