summaryrefslogtreecommitdiff
path: root/src/modules/m_chanprotect.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 12:09:52 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 12:09:52 +0000
commitc47776703ef551ed8eeee336d21da73aae020103 (patch)
treefe6ebf3260b1555212589ff71da92e806ee1f7a7 /src/modules/m_chanprotect.cpp
parent1c7deaf6fefa8755307c61ef4071a96f31f86916 (diff)
DELETE()'s in destructors *fwap*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4203 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r--src/modules/m_chanprotect.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 0839a48e4..dca0b53d2 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -14,9 +14,6 @@
* ---------------------------------------------------
*/
-using namespace std;
-
-#include <stdio.h>
#include "users.h"
#include "channels.h"
#include "modules.h"
@@ -24,7 +21,7 @@ using namespace std;
/* $ModDesc: Provides channel modes +a and +q */
-char fakevalue[] = "on";
+const char fakevalue* = "on";
class ModuleChanProtect : public Module
{
@@ -35,13 +32,9 @@ class ModuleChanProtect : public Module
public:
ModuleChanProtect(Server* Me)
- : Module::Module(Me)
- {
-
- // here we initialise our module. Use new to create new instances of the required
- // classes.
-
- Srv = Me;
+ : Module::Module(Me), Srv(Me)
+ {
+ /* Initialise module variables */
Conf = new ConfigReader;
// set up our modes. We're using listmodes and not normal extmodes here.
@@ -372,4 +365,3 @@ extern "C" void * init_module( void )
{
return new ModuleChanProtectFactory;
}
-