X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_spanningtree%2Fnetburst.cpp;h=d86115cce40da25cffc47e455c00084da03cb52e;hb=8710724b5518ae9858309e548514f76e620a8459;hp=89c8046f594719c1dfc3e28d251c4e11af6b5c02;hpb=f00ac52c5d593fcb761fc316b2582bb06158035c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 89c8046f5..d86115cce 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -34,9 +34,8 @@ */ void TreeSocket::DoBurst(TreeServer* s) { - std::string servername = s->GetName(); ServerInstance->SNO->WriteToSnoMask('l',"Bursting to \2%s\2 (Authentication: %s%s).", - servername.c_str(), + s->GetName().c_str(), capab->auth_fingerprint ? "SSL Fingerprint and " : "", capab->auth_challenge ? "challenge-response" : "plaintext password"); this->CleanNegotiationInfo(); @@ -52,7 +51,7 @@ void TreeSocket::DoBurst(TreeServer* s) SyncChannel(i->second); this->SendXLines(); - FOREACH_MOD(I_OnSyncNetwork,OnSyncNetwork(Utils->Creator,(void*)this)); + FOREACH_MOD(OnSyncNetwork, (Utils->Creator,(void*)this)); this->WriteLine(":" + ServerInstance->Config->GetSID() + " ENDBURST"); ServerInstance->SNO->WriteToSnoMask('l',"Finished bursting to \2"+ s->GetName()+"\2."); } @@ -108,7 +107,7 @@ void TreeSocket::SendFJoins(Channel* c) } this->WriteLine(line); - ModeReference ban(NULL, "ban"); + ChanModeReference ban(NULL, "ban"); static_cast(*ban)->DoSyncChannel(c, Utils->Creator, this); } @@ -168,7 +167,7 @@ void TreeSocket::SyncChannel(Channel* chan) Utils->Creator->ProtoSendMetaData(this, chan, item->name, value); } - FOREACH_MOD(I_OnSyncChannel,OnSyncChannel(chan, Utils->Creator, this)); + FOREACH_MOD(OnSyncChannel, (chan, Utils->Creator, this)); } /** send all users and their oper state/modes */ @@ -213,7 +212,7 @@ void TreeSocket::SendUsers() Utils->Creator->ProtoSendMetaData(this, u->second, item->name, value); } - FOREACH_MOD(I_OnSyncUser,OnSyncUser(u->second,Utils->Creator,this)); + FOREACH_MOD(OnSyncUser, (u->second,Utils->Creator,this)); } } }