mirror of
https://github.com/znc/znc.git
synced 2026-06-12 17:54:59 +02:00
Add test for modperl SCString functions.
Pass CClient to the OnClientGetSASLMechanisms callback. See #1970
This commit is contained in:
+3
-2
@@ -1361,8 +1361,9 @@ void CClient::AcceptSASLLogin(CUser& User) {
|
||||
|
||||
SCString CClient::EnumerateSASLMechanisms() const {
|
||||
SCString ssMechanisms;
|
||||
// FIXME Currently GetClient()==nullptr due to const
|
||||
GLOBALMODULECALL(OnClientGetSASLMechanisms(ssMechanisms), NOTHING);
|
||||
// FIXME Fix this const_cast
|
||||
_GLOBALMODULECALL(OnClientGetSASLMechanisms(ssMechanisms), nullptr, nullptr,
|
||||
const_cast<CClient*>(this), NOTHING);
|
||||
return ssMechanisms;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user