Rename new callback, fix build

This commit is contained in:
Alexey Sokolov
2025-02-13 21:22:09 +00:00
parent 22f27b2e88
commit c8266aafda
7 changed files with 12 additions and 12 deletions

View File

@@ -41,12 +41,12 @@ class CSASLMechanismPlain : public CModule {
return HALTMODS;
}
auto spAuth = std::make_shared<CClientAuth>(this, sAuthcId, sPassword);
auto spAuth = std::make_shared<CClientAuth>(GetClient(), sAuthcId, sPassword);
CZNC::Get().AuthUser(spAuth);
return HALTMODS;
}
void OnGetSASLMechanisms(SCString& ssMechanisms) override {
void OnClientGetSASLMechanisms(SCString& ssMechanisms) override {
ssMechanisms.insert("PLAIN");
}
};