--- masquerade.module.orig	Thu Feb 28 14:20:22 2008
+++ masquerade.module	Thu Feb 28 14:20:36 2008
@@ -327,6 +327,12 @@ function masquerade_autocomplete($string) {
   while ($user = db_fetch_object($result)) {
     $matches[$user->name] = check_plain($user->name);
   }
+  if (module_exists('alt_login')) {
+    $result = db_query_range("SELECT alt_login FROM {alt_login} WHERE LOWER(alt_login) LIKE LOWER('%s%%')", $string, 0, 10);
+    while ($user = db_fetch_object($result)) {
+      $matches[$user->alt_login] = check_plain($user->alt_login);
+    }
+  }
   print drupal_to_js($matches);
   exit();
 }
