mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Merge branch '1.6.x'
Conflicts: modules/cyrusauth.cpp modules/keepnick.cpp modules/notes.cpp
This commit is contained in:
@@ -31,6 +31,13 @@ public:
|
||||
MODCONSTRUCTOR(CSASLAuthMod) {
|
||||
m_Cache.SetTTL(60000/*ms*/);
|
||||
|
||||
m_cbs[0].id = SASL_CB_GETOPT;
|
||||
m_cbs[0].proc = reinterpret_cast<int(*)()>(CSASLAuthMod::getopt);
|
||||
m_cbs[0].context = this;
|
||||
m_cbs[1].id = SASL_CB_LIST_END;
|
||||
m_cbs[1].proc = nullptr;
|
||||
m_cbs[1].context = nullptr;
|
||||
|
||||
AddHelpCommand();
|
||||
AddCommand("CreateUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::CreateUserCommand),
|
||||
"[yes|no]");
|
||||
@@ -77,13 +84,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
m_cbs[0].id = SASL_CB_GETOPT;
|
||||
m_cbs[0].proc = reinterpret_cast<int(*)()>(CSASLAuthMod::getopt);
|
||||
m_cbs[0].context = this;
|
||||
m_cbs[1].id = SASL_CB_LIST_END;
|
||||
m_cbs[1].proc = nullptr;
|
||||
m_cbs[1].context = nullptr;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user