summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-10-27 13:21:24 -0400
committerAdam <Adam@anope.org>2015-10-27 13:21:24 -0400
commit162fdbe5815bbdf187f549fefac94ff476d72e62 (patch)
tree1c58968fd29dd90ef8ab6dc0f3013d88b313ce4e /modules/commands/cs_xop.cpp
parentc6a92296d4175a2d2276c2d5a46894af3d9085f4 (diff)
Beginning of new module dependency stuff, seems to compile and link. Move some of the madness in chanserv.h to the module.
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 0de467f4f..891ac77e7 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -9,8 +9,12 @@
* Based on the original code of Services by Andy Church.
*/
+/* Dependencies: chanserv */
+
#include "module.h"
#include "modules/cs_access.h"
+#include "../pseudoclients/chanserv/chanaccess.h"
+#include "../pseudoclients/chanserv/chanaccesstype.h"
namespace
{
@@ -18,11 +22,11 @@ namespace
std::map<Anope::string, std::vector<Anope::string> > permissions;
}
-class XOPChanAccess : public ChanServ::ChanAccess
+class XOPChanAccess : public ChanAccessImpl
{
public:
- XOPChanAccess(Serialize::TypeBase *type) : ChanServ::ChanAccess(type) { }
- XOPChanAccess(Serialize::TypeBase *type, Serialize::ID id) : ChanServ::ChanAccess(type, id) { }
+ XOPChanAccess(Serialize::TypeBase *type) : ChanAccessImpl(type) { }
+ XOPChanAccess(Serialize::TypeBase *type, Serialize::ID id) : ChanAccessImpl(type, id) { }
Anope::string GetType();
void SetType(const Anope::string &);
@@ -81,7 +85,7 @@ class XOPChanAccess : public ChanServ::ChanAccess
};
-class XOPChanAccessType : public Serialize::Type<XOPChanAccess, ChanServ::ChanAccessType>
+class XOPChanAccessType : public Serialize::Type<XOPChanAccess, ChanAccessType>
{
public:
Serialize::Field<XOPChanAccess, Anope::string> type;
@@ -648,4 +652,9 @@ class CSXOP : public Module
}
};
+template<> void ModuleInfo<CSXOP>(ModuleDef *def)
+{
+ def->Depends("chanserv");
+}
+
MODULE_INIT(CSXOP)