1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 13:23:12 +02:00

Made IRCDProto a Service

This commit is contained in:
Adam
2012-11-23 23:10:41 -05:00
parent 36b1166cf6
commit ded89b0d49
13 changed files with 30 additions and 76 deletions
-4
View File
@@ -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.
*/
+2 -2
View File
@@ -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();