diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 20:44:38 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-03 00:30:01 +0200 |
commit | b998720a5f6f66e80c88a5448435943d5927abf3 (patch) | |
tree | 57cc426792fa0043dc0c58c29291e9b399239f28 /src | |
parent | 177dde0d84ee385f9f172a058f314c5f4a4423fc (diff) |
m_spanningtree Netburst: Remove unused parameters and variables
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 22 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket.h | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 8319dab8b..9e6c07425 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -45,10 +45,10 @@ void TreeSocket::DoBurst(TreeServer* s) /* Send server tree */ this->SendServers(Utils->TreeRoot,s,1); /* Send users and their oper status */ - this->SendUsers(s); + this->SendUsers(); /* Send everything else (channel modes, xlines etc) */ - this->SendChannelModes(s); - this->SendXLines(s); + this->SendChannelModes(); + this->SendXLines(); FOREACH_MOD(I_OnSyncNetwork,OnSyncNetwork(Utils->Creator,(void*)this)); this->WriteLine(":" + ServerInstance->Config->GetSID() + " ENDBURST"); ServerInstance->SNO->WriteToSnoMask('l',"Finished bursting to \2"+ s->GetName()+"\2."); @@ -87,7 +87,7 @@ void TreeSocket::SendServers(TreeServer* Current, TreeServer* s, int hops) * If the length of a single line is more than 480-NICKMAX * in length, it is split over multiple lines. */ -void TreeSocket::SendFJoins(TreeServer* Current, Channel* c) +void TreeSocket::SendFJoins(Channel* c) { std::string buffer; char list[MAXBUF]; @@ -167,8 +167,8 @@ void TreeSocket::SendFJoins(TreeServer* Current, Channel* c) this->WriteLine(buffer); } -/** Send G, Q, Z and E lines */ -void TreeSocket::SendXLines(TreeServer* Current) +/** Send all XLines we know about */ +void TreeSocket::SendXLines() { char data[MAXBUF]; std::string n = ServerInstance->Config->GetSID(); @@ -207,16 +207,16 @@ void TreeSocket::SendXLines(TreeServer* Current) } } -/** Send channel modes and topics */ -void TreeSocket::SendChannelModes(TreeServer* Current) +/** Send channel topic, modes and metadata */ +void TreeSocket::SendChannelModes() { char data[MAXBUF]; - std::deque<std::string> list; std::string n = ServerInstance->Config->GetSID(); const char* sn = n.c_str(); + for (chan_hash::iterator c = ServerInstance->chanlist->begin(); c != ServerInstance->chanlist->end(); c++) { - SendFJoins(Current, c->second); + SendFJoins(c->second); if (!c->second->topic.empty()) { snprintf(data,MAXBUF,":%s FTOPIC %s %lu %s :%s", sn, c->second->name.c_str(), (unsigned long)c->second->topicset, c->second->setby.c_str(), c->second->topic.c_str()); @@ -236,7 +236,7 @@ void TreeSocket::SendChannelModes(TreeServer* Current) } /** send all users and their oper state/modes */ -void TreeSocket::SendUsers(TreeServer* Current) +void TreeSocket::SendUsers() { char data[MAXBUF]; std::string dataline; diff --git a/src/modules/m_spanningtree/treesocket.h b/src/modules/m_spanningtree/treesocket.h index aebc7e03b..c1ca5e74a 100644 --- a/src/modules/m_spanningtree/treesocket.h +++ b/src/modules/m_spanningtree/treesocket.h @@ -216,16 +216,16 @@ class TreeSocket : public BufferedSocket * If the length of a single line is more than 480-NICKMAX * in length, it is split over multiple lines. */ - void SendFJoins(TreeServer* Current, Channel* c); + void SendFJoins(Channel* c); /** Send G, Q, Z and E lines */ - void SendXLines(TreeServer* Current); + void SendXLines(); /** Send channel modes and topics */ - void SendChannelModes(TreeServer* Current); + void SendChannelModes(); /** send all users and their oper state/modes */ - void SendUsers(TreeServer* Current); + void SendUsers(); /** This function is called when we want to send a netburst to a local * server. There is a set order we must do this, because for example |