Manual:Hooks/UserRetrieveNewTalks

Details
&$user: user retrieving new talks messages

&$talks: reference to array of new talks page(s)