summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-03 17:51:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-03 17:51:17 +0000
commit12a897a3c78d7b10310a58245a9ee1fef4efc6e2 (patch)
treed3719ff8ef03ca674c0ee5819ecfcb1290638038 /src/modules
parent62a8a5465691ef8d95642daed3983e442ab54b70 (diff)
Cut out redundant loop from nickname introductions, also ensure that each UID message is immediately followed by any metadata related to that nickname
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8116 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index cf3668acc..f75362bd3 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -1318,17 +1318,14 @@ void TreeSocket::SendUsers(TreeServer* Current)
this->WriteLine(data);
}
}
- }
- }
- for (user_hash::iterator u = this->Instance->clientlist->begin(); u != this->Instance->clientlist->end(); u++)
- {
- FOREACH_MOD_I(this->Instance,I_OnSyncUser,OnSyncUser(u->second,(Module*)Utils->Creator,(void*)this));
- list.clear();
- u->second->GetExtList(list);
- for (unsigned int j = 0; j < list.size(); j++)
- {
- FOREACH_MOD_I(this->Instance,I_OnSyncUserMetaData,OnSyncUserMetaData(u->second,(Module*)Utils->Creator,(void*)this,list[j]));
+ FOREACH_MOD_I(this->Instance,I_OnSyncUser,OnSyncUser(u->second,(Module*)Utils->Creator,(void*)this));
+ list.clear();
+ u->second->GetExtList(list);
+ for (unsigned int j = 0; j < list.size(); j++)
+ {
+ FOREACH_MOD_I(this->Instance,I_OnSyncUserMetaData,OnSyncUserMetaData(u->second,(Module*)Utils->Creator,(void*)this,list[j]));
+ }
}
}
}