From b37a253d962ed7af1ea7a328abf2a1af74f30759 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 23:19:43 +0000 Subject: Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done. Changed Parameter for modules from Server* to InspIRCd*. TODO: Move remaining Server* Modules into InspIRCd* and remove class Server. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4859 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_inviteexception.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/modules/m_inviteexception.cpp') diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index f3e278e98..51a489de0 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -24,7 +24,7 @@ class InspIRCd* ServerInstance; class InviteException : public ListModeBase { public: - InviteException(InspIRCd* Instance, Server* serv) : ListModeBase(Instance, serv, 'I', "End of Channel Invite Exception List", "346", "347", true) { } + InviteException(InspIRCd* Instance) : ListModeBase(Instance, 'I', "End of Channel Invite Exception List", "346", "347", true) { } }; class ModuleInviteException : public Module @@ -33,10 +33,9 @@ class ModuleInviteException : public Module Server* Srv; public: - ModuleInviteException(Server* serv) : Module(serv) + ModuleInviteException(InspIRCd* Me) : Module(Me) { - ie = new InviteException(ServerInstance, serv); - Srv = serv; + ie = new InviteException(ServerInstance); Srv->AddMode(ie, 'I'); } @@ -62,7 +61,7 @@ public: { for (modelist::iterator it = list->begin(); it != list->end(); it++) { - if(Srv->MatchText(user->GetFullRealHost(), it->mask) || Srv->MatchText(user->GetFullHost(), it->mask)) + if(match(user->GetFullRealHost(), it->mask.c_str()) || match(user->GetFullHost(), it->mask.c_str())) { // They match an entry on the list, so let them in. return 1; @@ -113,9 +112,9 @@ class ModuleInviteExceptionFactory : public ModuleFactory { } - virtual Module * CreateModule(Server* serv) + virtual Module * CreateModule(InspIRCd* Me) { - return new ModuleInviteException(serv); + return new ModuleInviteException(Me); } }; -- cgit v1.3.1-10-gc9f91