]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Sped up introduction of nicks using vector::resize() rather than the craq++ loop...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 5 Mar 2006 00:08:48 +0000 (00:08 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 5 Mar 2006 00:08:48 +0000 (00:08 +0000)
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

include/channels.h
src/modules/m_spanningtree.cpp
src/svn-rev.sh
src/users.cpp

index 3947ffc2b0307600f1674254b7657e8af064ad07..03c636d9bba91a990dc5bce16a065a20be2c5ca9 100644 (file)
@@ -270,7 +270,7 @@ class ucrec : public classbase
         */
        chanrec *channel;
 
-       ucrec() { /* stub */ }
+       ucrec() : uc_modes(0), channel(NULL) { /* stub */ }
        virtual ~ucrec() { /* stub */ }
 };
 
index b06a76d159d46978b44d649633b94dd2f736704e..16000a5eca9f024acf399966ce3ae215dfd50dfa 100644 (file)
@@ -1107,13 +1107,10 @@ class TreeSocket : public InspSocket
                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);
+
+               WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",clientlist[tempnick]->server,clientlist[tempnick]->nick,clientlist[tempnick]->ident,clientlist[tempnick]->host,(char*)inet_ntoa(clientlist[tempnick]->ip4));
 
-               if (!this->bursting)
-               {
-                       WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",clientlist[tempnick]->server,clientlist[tempnick]->nick,clientlist[tempnick]->ident,clientlist[tempnick]->host,(char*)inet_ntoa(clientlist[tempnick]->ip4));
-               }
                params[7] = ":" + params[7];
                DoOneToAllButSender(source,"NICK",params,source);
 
index 86cc01a7367b93b8566f2b913e00d1fda538a59f..25451a4158488284ea5285ea2389c5be6a6e280c 100755 (executable)
@@ -1 +1 @@
-echo 3457
+echo 3459
index 90c1ddcf975ca8c0b8d22fa1e6b2a2e543222010..e4d2546a9cbfa757a935005faf05bf5e4d58d4e0 100644 (file)
@@ -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]);