summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/userlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/userlist.c b/src/common/userlist.c
index da40ff14..0f28a000 100644
--- a/src/common/userlist.c
+++ b/src/common/userlist.c
@@ -416,7 +416,8 @@ userlist_add (struct session *sess, char *name, char *hostname,
 		sess->me = user;
 
 	fe_userlist_insert (sess, user, FALSE);
-	fe_userlist_numbers (sess);
+	if(sess->end_of_names)
+		fe_userlist_numbers (sess);
 }
 
 static int