summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-05 00:08:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-05 00:08:48 +0000
commitaa223a7d91019c5fe30acc86b69d73530c4ddcf5 (patch)
tree254407f8a546075c4105f076098ea148b77f6b3f /src/modules/m_spanningtree.cpp
parent49329f48b7ba021204af09a9d60f727ba368b72f (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index b06a76d15..16000a5ec 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -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);