mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Merge branch '1.6.x'
Conflicts: modules/cyrusauth.cpp modules/keepnick.cpp modules/notes.cpp
This commit is contained in:
@@ -21,9 +21,6 @@
|
||||
class CCtcpFloodMod : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CCtcpFloodMod) {
|
||||
m_tLastCTCP = 0;
|
||||
m_iNumCTCP = 0;
|
||||
|
||||
AddHelpCommand();
|
||||
AddCommand("Secs", static_cast<CModCommand::ModCmdFunc>(&CCtcpFloodMod::OnSecsCommand), "<limit>", "Set seconds limit");
|
||||
AddCommand("Lines", static_cast<CModCommand::ModCmdFunc>(&CCtcpFloodMod::OnLinesCommand), "<limit>", "Set lines limit");
|
||||
@@ -131,11 +128,11 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
time_t m_tLastCTCP;
|
||||
unsigned int m_iNumCTCP;
|
||||
time_t m_tLastCTCP = 0;
|
||||
unsigned int m_iNumCTCP = 0;
|
||||
|
||||
time_t m_iThresholdSecs;
|
||||
unsigned int m_iThresholdMsgs;
|
||||
time_t m_iThresholdSecs{};
|
||||
unsigned int m_iThresholdMsgs{};
|
||||
};
|
||||
|
||||
template<> void TModInfo<CCtcpFloodMod>(CModInfo& Info) {
|
||||
|
||||
Reference in New Issue
Block a user