--- drupal/modules/comment.module	2004-05-21 21:59:32.828229712 +0200
+++ /home/pablo/public_html/drupal-cvs/modules/comment.module	2004-05-21 21:27:12.000000000 +0200
@@ -238,6 +238,7 @@
 
   $comment->uid = $user->uid;
   $comment->timestamp = time();
+  $comment->name = $user->name ? $user->name : $comment->name;
 
   /*
   ** Preview the comment:
@@ -708,6 +710,7 @@
 
       while ($comment = db_fetch_object($result)) {
         $comment = drupal_unpack($comment);
+        $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name;
         $comment->depth = count(explode(".", $comment->thread)) - 1;
 
         if ($mode == 1) {
