mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
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:
+4
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user