From 5baac801718c0a2f9a64bdcf2c06a31f3afbddd3 Mon Sep 17 00:00:00 2001 From: "Robert J. Heywood" Date: Tue, 21 Aug 2018 11:28:45 +0100 Subject: [PATCH] CSmartPtr; removed in favour of std::shared_ptr The CSmartPtr class was removed from upstream ZNC in 2014 (62328b2c) This patch allows the module to compile against builds more recent than that (such as those found in Debian 9). --- cyrusauthldap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyrusauthldap.cpp b/cyrusauthldap.cpp index df57034..314622c 100644 --- a/cyrusauthldap.cpp +++ b/cyrusauthldap.cpp @@ -103,7 +103,7 @@ class CSASLAuthMod : public CModule { return true; } - virtual EModRet OnLoginAttempt(CSmartPtr Auth) { + virtual EModRet OnLoginAttempt(std::shared_ptr Auth) { const CString& sUsername = Auth->GetUsername(); const CString& sPassword = Auth->GetPassword(); CUser *pUser(CZNC::Get().FindUser(sUsername));