php function to display commenter username or login

If the person commenting is already logged in you could capture the user object like so $user = wp_get_current_user(); and then simply grab the username like $user->user_login. Once you have this it shouldn’t be too hard to add in to the creation of a comment so its only asking for the username alone and only once logged in.