From 8c00f38e5b8efc96504b36ddbdadc12e007a9a13 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 13 Dec 2005 16:11:08 +0000 Subject: Made MAXCHANS growable for opers/ulines (growing of list not implemented yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2367 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 1920e8dcd..46bf70744 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -57,11 +57,7 @@ userrec::userrec() dns_done = false; recvq = ""; sendq = ""; - for (int i = 0; i < MAXCHANS; i++) - { - this->chans[i].channel = NULL; - this->chans[i].uc_modes = 0; - } + chans.clear(); invites.clear(); } @@ -86,7 +82,6 @@ int userrec::ReadData(void* buffer, size_t size) { if (this->fd > -1) { - log(DEBUG,"userrec::ReadData on fd %d",this->fd); return read(this->fd, buffer, size); } else return 0; -- cgit v1.3.1-10-gc9f91