diff options
| author | 2010-02-09 11:37:44 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:34 -0400 | |
| commit | f1c15d73a0805796d6c4a8030f5b155f1ad97077 (patch) | |
| tree | 55b809d05c0512f5fe69d0972ca2b91f5909da1f /src/modules/m_inviteexception.cpp | |
| parent | Change storage of +b list to match the other listmodes (diff) | |
Module compilation fixups
Diffstat (limited to 'src/modules/m_inviteexception.cpp')
| -rw-r--r-- | src/modules/m_inviteexception.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index d90231081..b5ba17b5c 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -15,7 +15,6 @@ #include "u_listmode.h" /* $ModDesc: Provides support for the +I channel mode */ -/* $ModDep: ../../include/u_listmode.h */ /* * Written by Om <om@inspircd.org>, April 2005. @@ -41,12 +40,14 @@ class ModuleInviteException : public Module public: ModuleInviteException() : ie(this) { - if (!ServerInstance->Modes->AddMode(&ie)) - throw ModuleException("Could not add new modes!"); + } + + void init() + { + ServerInstance->Modules->AddService(ie); - ie.DoImplements(this); - Implementation eventlist[] = { I_On005Numeric, I_OnCheckInvite }; - ServerInstance->Modules->Attach(eventlist, this, 2); + Implementation eventlist[] = { I_On005Numeric, I_OnCheckInvite, I_OnRehash }; + ServerInstance->Modules->Attach(eventlist, this, 3); } void On005Numeric(std::string &output) @@ -79,11 +80,6 @@ public: ie.DoCleanup(target_type, item); } - void OnSyncChannel(Channel* chan, Module* proto, void* opaque) - { - ie.DoSyncChannel(chan, proto, opaque); - } - void OnRehash(User* user) { ie.DoRehash(); |
