diff options
| author | 2012-10-06 21:43:20 +0200 | |
|---|---|---|
| committer | 2012-11-12 21:48:42 +0100 | |
| commit | a4db7bf9af00b32d4f5c1922997d02b0b8be59e5 (patch) | |
| tree | 2fd4c4ee2344300285f919968760f27f9ca41df4 /src/modules/m_conn_waitpong.cpp | |
| parent | m_operprefix Enhance compatibility with m_hideoper using a ModeWatcher (diff) | |
Remove usage of the deprecated ConfigReader
Diffstat (limited to 'src/modules/m_conn_waitpong.cpp')
| -rw-r--r-- | src/modules/m_conn_waitpong.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index 764246e84..50aeffd0a 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -44,17 +44,9 @@ class ModuleWaitPong : public Module void OnRehash(User* user) { - ConfigReader Conf; - - sendsnotice = Conf.ReadFlag("waitpong", "sendsnotice", 0); - - if(Conf.GetError() == CONF_VALUE_NOT_FOUND) - sendsnotice = true; - - killonbadreply = Conf.ReadFlag("waitpong", "killonbadreply", 0); - - if(Conf.GetError() == CONF_VALUE_NOT_FOUND) - killonbadreply = true; + ConfigTag* tag = ServerInstance->Config->ConfValue("waitpong"); + sendsnotice = tag->getBool("sendsnotice", true); + killonbadreply = tag->getBool("killonbadreply", true); } ModResult OnUserRegister(LocalUser* user) |
