From aa223a7d91019c5fe30acc86b69d73530c4ddcf5 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 5 Mar 2006 00:08:48 +0000 Subject: Sped up introduction of nicks using vector::resize() rather than the craq++ loop (wtf was i thinking doing it that way?) Removed 'client connecting notices dont show locally during burst' -- this is silly as it doesnt work remotely and is pretty much pointless git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3460 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 90c1ddcf9..e4d2546a9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -612,8 +612,7 @@ void AddClient(int socket, int port, bool iscached, in_addr ip4) ucrec a; a.channel = NULL; a.uc_modes = 0; - for (int i = 0; i < MAXCHANS; i++) - clientlist[tempnick]->chans.push_back(a); + clientlist[tempnick]->chans.resize(MAXCHANS); fd_ref_table[socket] = clientlist[tempnick]; local_users.push_back(clientlist[tempnick]); -- cgit v1.3.1-10-gc9f91