? notifications_team.622582-DRUPAL-6--1-0.patch
Index: notifications_team.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notifications_team/notifications_team.module,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 notifications_team.module
--- notifications_team.module	17 Apr 2009 18:09:17 -0000	1.1.2.10
+++ notifications_team.module	2 Dec 2009 17:38:22 -0000
@@ -175,12 +175,12 @@ function notifications_team_form($nid) {
       // have an autocomplete box and only have users on the checkboxes that are already subscribed
       $acomplete = TRUE;
       foreach($subscribers as $u) {
-        $user_names[$u->uid] = $u->name;
+        $user_names[$u->uid] = theme('username', $u);
       }
     }
     else {
       foreach($users as $u) {
-        $user_names[$u->uid] = $u->name;
+        $user_names[$u->uid] = theme('username', $u);
       }
       if (count($user_names) == 0) {
         return array();
@@ -403,7 +403,7 @@ function notifications_team_autocomplete
   if ($string) {
     $prefix = count($array) ? implode(', ', $array) .', ' : '';
     foreach (notifications_team_get_users($string, 10, $oggroup) as $user) {
-      $matches[$prefix . $user->name] = $prefix . check_plain($user->name);
+      $matches[$prefix . $user->name] = $prefix . theme('username', $user);
     }
   }
   drupal_json($matches);
