diff options
| author | 2010-03-05 22:21:29 +0000 | |
|---|---|---|
| committer | 2010-08-03 17:32:39 -0400 | |
| commit | 6619f1957b45e92c3acae5cd319e58abc257990e (patch) | |
| tree | c6754cd613e0e0e6b0d4cb1d309cf9a6d0583073 /src/modules/extra/m_pgsql.cpp | |
| parent | Add <include:allow> permissions for included files (diff) | |
Fix SQL modules not all using AddService, noticed by Morpheus
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12595 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index b1f6916d0..5edcfca19 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -759,9 +759,11 @@ class ModulePgSQL : public Module : currid(0), sqlserv(this, "SQL/pgsql", SERVICE_DATA) { sqlsuccess = new char[strlen(SQLSUCCESS)+1]; - strlcpy(sqlsuccess, SQLSUCCESS, strlen(SQLSUCCESS)); + } + void init() + { ReadConf(); ServerInstance->Modules->AddService(sqlserv); |
