aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_services_account.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-21 15:53:04 +0000
committerGravatar Sadie Powell2022-01-21 16:36:43 +0000
commita51d044c82d2e39a2d9a79dd2ce181ef7bd32b02 (patch)
tree3df8fc518ec12122c4096431d521d9deef58b5b0 /src/modules/m_services_account.cpp
parentFix aliases which require routing to be broadcast out. (diff)
downloadinspircd++-a51d044c82d2e39a2d9a79dd2ce181ef7bd32b02.tar.gz
inspircd++-a51d044c82d2e39a2d9a79dd2ce181ef7bd32b02.tar.bz2
inspircd++-a51d044c82d2e39a2d9a79dd2ce181ef7bd32b02.zip
Fix various edge cases in extensible synchronisation.
- Fix not forwarding the accountid extensible if it is set. - Rename the variadic Set() overload to SetFwd(). - Re-add the `const T&` overload of Set(). - Move `bool synced` to SimpleExtItem from StringExtItem. - Only sync extensibles if their instance is marked as syncable.
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r--src/modules/m_services_account.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 8a97a83eb..b5d5f22a6 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -103,11 +103,6 @@ class AccountExtItemImpl final
{
}
- void FromInternal(Extensible* container, const std::string& value) noexcept override
- {
- StringExtItem::FromInternal(container, value);
- }
-
void FromNetwork(Extensible* container, const std::string& value) noexcept override
{
StringExtItem::FromNetwork(container, value);
@@ -201,7 +196,7 @@ class ModuleServicesAccount final
, regdeafmode(this, "regdeaf", 'R')
, chanregmode(this)
, userregmode(this)
- , accountid(this, "accountid", ExtensionType::USER)
+ , accountid(this, "accountid", ExtensionType::USER, true)
, accountname(this)
, accountextban(this, accountname)
, unauthedextban(this, accountname)