From ded89b0d4939c4c1b9bbbb9007cd12286ff077a0 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Nov 2012 23:10:41 -0500 Subject: Made IRCDProto a Service --- include/modules.h | 4 ---- include/protocol.h | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index bbdfc5659..09df6617e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -256,10 +256,6 @@ class CoreExport Module : public Extensible */ ModuleVersion GetVersion() const; - /** Gets the IRCd protocol published by this module - */ - virtual IRCDProto *GetIRCDProto(); - /* Everything below here are events. Modules must ModuleManager::Attach to these events * before they will be called. */ diff --git a/include/protocol.h b/include/protocol.h index 65b31680f..7d86693bc 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -18,12 +18,12 @@ #include "service.h" /* Encapsultes the IRCd protocol we are speaking. */ -class CoreExport IRCDProto +class CoreExport IRCDProto : public Service { Anope::string proto_name; protected: - IRCDProto(const Anope::string &proto_name); + IRCDProto(Module *creator, const Anope::string &proto_name); public: virtual ~IRCDProto(); -- cgit