? notifications_team.622582-DRUPAL-6--2-0-BETA5.patch
Index: notifications_team.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notifications_team/notifications_team.module,v
retrieving revision 1.1.2.10.2.8
diff -u -p -r1.1.2.10.2.8 notifications_team.module
--- notifications_team.module	26 Jun 2009 17:34:53 -0000	1.1.2.10.2.8
+++ notifications_team.module	2 Dec 2009 17:33:25 -0000
@@ -184,13 +184,13 @@ function notifications_team_form($nid) {
       $acomplete = TRUE;
       foreach($subscribers as $u) {
         $u = $users[$u];
-        $user_names[$u->uid] = $u->name;
+        $user_names[$u->uid] = theme('username', $u);
       }
       asort($user_names);
     }
     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();
@@ -428,7 +428,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);
