diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-29 14:49:39 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-29 16:14:15 +0000 |
commit | 579af3c44200a8325bd2eec9e6ff0ec28fa7125b (patch) | |
tree | 455dbad4bdc231ea4b2b9297e0dfa0a53446d640 /src/regchannel.cpp | |
parent | 25bdcfcbc472b8e348aa338d8ebb0a18fd006fff (diff) |
Rip out ns_access and related code.
This is wildly insecure and has been disabled by default for at
least a decade.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index a3e04d864..404f55aae 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -268,10 +268,6 @@ Serializable *ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data) /* compat */ bool b; b = false; - data["extensible:SECURE"] >> b; - if (b) - ci->Extend<bool>("CS_SECURE"); - b = false; data["extensible:PRIVATE"] >> b; if (b) ci->Extend<bool>("CS_PRIVATE"); @@ -423,18 +419,10 @@ AccessGroup ChannelInfo::AccessFor(const User *u, bool updateLastUsed) if (u == NULL) return group; - const NickCore *nc = u->Account(); - if (nc == NULL && !this->HasExt("NS_SECURE") && u->IsRecognized()) - { - const NickAlias *na = NickAlias::Find(u->nick); - if (na != NULL) - nc = na->nc; - } - group.super_admin = u->super_admin; group.founder = IsFounder(u, this); group.ci = this; - group.nc = nc; + group.nc = u->Account(); FindMatches(group, this, u, u->Account()); |