From f9636a2eff46f6829bf9e01c711ab1ba45a7d50a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 22:40:57 +0000 Subject: So much stuff changed in this one, i forgot most of it. Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcaps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_blockcaps.cpp') diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 8cc3d8646..76d535380 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -29,7 +29,7 @@ extern InspIRCd* ServerInstance; class BlockCaps : public ModeHandler { public: - BlockCaps() : ModeHandler('P', 0, 0, false, MODETYPE_CHANNEL, false) { } + BlockCaps(InspIRCd* Instance) : ModeHandler(Instance, 'P', 0, 0, false, MODETYPE_CHANNEL, false) { } ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { @@ -63,7 +63,7 @@ public: ModuleBlockCAPS(Server* Me) : Module::Module(Me) { Srv = Me; - bc = new BlockCaps; + bc = new BlockCaps(ServerInstance); Srv->AddMode(bc, 'P'); } -- cgit v1.2.3