summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorgaffatape <gaffa@folkemagt.dk>2016-09-21 16:43:16 +0200
committerTingPing <tingping@tingping.se>2016-10-08 14:55:58 -0400
commit492c209d07b3da4332adced248454d3567bdb3c8 (patch)
tree54d2d740249468398e4285a136081fc3d5ec28b6 /src/common
parent29b5785bb4ee2ca45495bbdbdce027cc7a3e09f8 (diff)
Don't update usercount if doing nameslist
Diffstat (limited to 'src/common')
-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