diff options
| author | 2009-10-18 16:01:33 +0000 | |
|---|---|---|
| committer | 2009-10-18 16:01:33 +0000 | |
| commit | a59d08fffd3dc8a9850ce34c9928fb6382b9b37f (patch) | |
| tree | 1d5debd7915dddc122feec50443f42d535cba311 /src/modules/m_conn_join.cpp | |
| parent | Update VC project file for latest changes to sources. (diff) | |
Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReader
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_conn_join.cpp')
| -rw-r--r-- | src/modules/m_conn_join.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp index b1f12e1eb..ef834e55a 100644 --- a/src/modules/m_conn_join.cpp +++ b/src/modules/m_conn_join.cpp @@ -57,12 +57,11 @@ class ModuleConnJoin : public Module virtual void OnRehash(User* user) { - ConfigReader* conf = new ConfigReader; - JoinChan = conf->ReadValue("autojoin", "channel", 0); + ConfigReader conf; + JoinChan = conf.ReadValue("autojoin", "channel", 0); Joinchans.clear(); if (!JoinChan.empty()) tokenize(JoinChan,Joinchans); - delete conf; } virtual ~ModuleConnJoin() |
