Add a way to move networks between users.

It should help for migrating old multiuser setup to new multinetwork
one.

Fix #217
This commit is contained in:
Alexey Sokolov
2012-09-30 16:23:50 +07:00
parent 5e688f0dea
commit b5102355cb
3 changed files with 90 additions and 3 deletions
+4 -2
View File
@@ -81,8 +81,10 @@ CIRCNetwork::CIRCNetwork(CUser *pUser, const CIRCNetwork &Network) {
Clone(Network);
}
void CIRCNetwork::Clone(const CIRCNetwork& Network) {
m_sName = Network.GetName();
void CIRCNetwork::Clone(const CIRCNetwork& Network, bool bCloneName) {
if (bCloneName) {
m_sName = Network.GetName();
}
m_fFloodRate = Network.GetFloodRate();
m_uFloodBurst = Network.GetFloodBurst();