diff options
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r-- | src/modules/m_silence.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index fd6d889d4..cc510c3dd 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -313,10 +313,7 @@ class ModuleSilence : public Module { ConfigTag* tag = ServerInstance->Config->ConfValue("silence"); - maxsilence = tag->getInt("maxentries", 32); - if (!maxsilence) - maxsilence = 32; - + maxsilence = tag->getUInt("maxentries", 32, 1); ExemptULine = tag->getBool("exemptuline", true); } |