summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 1 insertions, 2 deletions
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]);