summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r--src/modules/m_blockcaps.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index ee57efafe..1d67522b9 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -94,20 +94,21 @@ public:
}
return 0;
}
-
+
virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status)
{
return OnUserPreMessage(user,dest,target_type,text,status);
}
-
+
virtual ~ModuleBlockCAPS()
{
+ ServerInstance->Modes->DelMode(bc);
DELETE(bc);
}
-
+
virtual Version GetVersion()
{
- return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
+ return Version(1,0,0,0,VF_COMMON|VF_VENDOR);
}
};