diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 23:02:28 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-12 21:03:04 +0200 |
commit | a04e586eb51b90d71cb76a2605ca9e194fb21b30 (patch) | |
tree | bcfc04512ee11214be58432458d7d22005db536d /src/modules/m_spanningtree/main.cpp | |
parent | 7f56a39e972c9dd27826e33f0ec824dda73afd61 (diff) |
m_spanningtree Change TreeServerList to be a set, get rid of a function dedicated to adding entries to it
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 9aee4a4ce..ac1d12423 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -498,7 +498,7 @@ void ModuleSpanningTree::OnUserNotice(User* user, void* dest, int target_type, c Utils->GetListOfServersForChannel(c,list,status,exempt_list); for (TreeServerList::iterator i = list.begin(); i != list.end(); i++) { - TreeSocket* Sock = i->second->GetSocket(); + TreeSocket* Sock = (*i)->GetSocket(); if (Sock) Sock->WriteLine(":"+std::string(user->uuid)+" NOTICE "+cname+" :"+text); } @@ -551,7 +551,7 @@ void ModuleSpanningTree::OnUserMessage(User* user, void* dest, int target_type, Utils->GetListOfServersForChannel(c,list,status,exempt_list); for (TreeServerList::iterator i = list.begin(); i != list.end(); i++) { - TreeSocket* Sock = i->second->GetSocket(); + TreeSocket* Sock = (*i)->GetSocket(); if (Sock) Sock->WriteLine(":"+std::string(user->uuid)+" PRIVMSG "+cname+" :"+text); } |