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 /modules/nickserv/ns_recover.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 'modules/nickserv/ns_recover.cpp')
| -rw-r--r-- | modules/nickserv/ns_recover.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/nickserv/ns_recover.cpp b/modules/nickserv/ns_recover.cpp index f12929f3a..d77dbc898 100644 --- a/modules/nickserv/ns_recover.cpp +++ b/modules/nickserv/ns_recover.cpp @@ -59,7 +59,7 @@ public: // same person that is executing the command, so kill them off (old GHOST command). else if (u->Account() == na->nc) { - if (!source.GetAccount() && na->nc->HasExt("NS_SECURE")) + if (!source.GetAccount()) { source.GetUser()->Login(u->Account()); Log(LOG_COMMAND, source, cmd) << "and was automatically identified to " << u->Account()->display; @@ -90,7 +90,7 @@ public: /* User is not identified or not identified to the same account as the person using this command */ else { - if (!source.GetAccount() && na->nc->HasExt("NS_SECURE")) + if (!source.GetAccount()) { source.GetUser()->Login(na->nc); // Identify the user using the command if they arent identified Log(LOG_COMMAND, source, cmd) << "and was automatically identified to " << na->nick << " (" << na->nc->display << ")"; @@ -182,8 +182,6 @@ public: bool ok = false; if (source.GetAccount() == na->nc) ok = true; - else if (!na->nc->HasExt("NS_SECURE") && source.GetUser() && na->nc->IsOnAccess(source.GetUser())) - ok = true; NSCertList *cl = na->nc->GetExt<NSCertList>("certificates"); if (source.GetUser() && !source.GetUser()->fingerprint.empty() && cl && cl->FindCert(source.GetUser()->fingerprint)) |
