Private Messaging Login/Register

When a user visits the inbox page before logging in it shows a login and registration form that is generated by private messaging.

I am using custom login and registration forms and need this to either show those or redirect to the login page.

How can I achieve this without editing the core of your plugin?