diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-02-25 16:48:38 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-25 16:48:38 +0100 |
commit | 4e0fd52057d1738f55d890b28e39e5ba685a3d26 (patch) | |
tree | 1287461a98ffbbc455d674151329c956a47faecb | |
parent | 5a64433015f5a25af133a136468093a140595bc5 (diff) |
m_svshold Hide server notices by default
Issue #742
-rw-r--r-- | docs/conf/modules.conf.example | 3 | ||||
-rw-r--r-- | src/modules/m_svshold.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example index f8a7330ff..8e87c266f 100644 --- a/docs/conf/modules.conf.example +++ b/docs/conf/modules.conf.example @@ -1828,7 +1828,8 @@ # SVSHold module: Implements SVSHOLD. Like Q:Lines, but can only be # # added/removed by Services. # #<module name="m_svshold.so"> -# If silent is true no snotices will be generated by SVSHOLD. +# SVSHOLD does not generate server notices by default, you can turn +# notices on by uncommenting the next line. #<svshold silent="false"> #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index c821f63bb..af306ce62 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -180,7 +180,7 @@ class ModuleSVSHold : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { ConfigTag* tag = ServerInstance->Config->ConfValue("svshold"); - silent = tag->getBool("silent"); + silent = tag->getBool("silent", true); } ModResult OnStats(char symbol, User* user, string_list &out) CXX11_OVERRIDE |