aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2010-03-05 22:21:29 +0000
committerGravatar danieldg2010-03-05 22:21:29 +0000
commit511ce8ba87df1cfb262b5809f3dab772595c4b0a (patch)
treec40085291a2cff3822a94f16955b56c4740982df /src/modules/extra/m_pgsql.cpp
parentFix variable shadowing warning (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.cpp4
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);