--- buddylist.module.old	2005-11-23 15:18:23.000000000 -0600
+++ buddylist.php	2005-11-23 15:48:40.000000000 -0600
@@ -121,7 +121,7 @@
           break;
         }
       }
-      $output .= form_item(t('Buddies'), theme('user_list', $listbuddies));
+      $fields['Buddy List']['Buddies'] = theme('user_list', $listbuddies);
     }
 
     // This portion of code is used to see if this $thisuser is a buddy of others and, if s/he is, returns a list
@@ -133,7 +133,7 @@
       $listbuddiesof[] = format_name($row);
     }
     if ($listbuddiesof) {
-      $output .= form_item(t('Buddy of'), theme('item_list', $listbuddiesof));
+      $fields['Buddy List']['Buddy of'] = theme('item_list', $listbuddiesof);
     }
 
     // Check to see whether or not $thisuser is in global $user's buddy list
@@ -150,9 +150,10 @@
       }
     }
     if ($actions) {
-      $output .= form_item(t('Buddy actions'), theme('item_list', $actions));
+      $fields['Buddy List']['Buddy Actions'] = theme('item_list', $actions);
     }
-    return array ('Buddy List' => $output);
+    
+    return $fields;
   }
 }
 
