From d067ea709c394b107ea493fd1a74f35d56fb4889 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Apr 2005 14:01:57 +0000 Subject: Added m_ident skeleton git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1087 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/modules/m_ident.cpp (limited to 'src') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp new file mode 100644 index 000000000..f61b4e73a --- /dev/null +++ b/src/modules/m_ident.cpp @@ -0,0 +1,81 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. + * E-mail: + * + * + * + * Written by Craig Edwards, Craig McLure, and others. + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +#include +#include +#include "users.h" +#include "channels.h" +#include "modules.h" + +/* $ModDesc: Provides support for RFC 1413 ident lookups */ + +Server *Srv; + +class ModuleIdent : public Module +{ + public: + ModuleIdent() + { + Srv = new Server; + } + + virtual void OnUserRegister(userrec* user) + { + } + + virtual bool OnUserReady(userrec* user) + { + return true; + } + + virtual ~ModuleIdent() + { + delete Srv; + } + + virtual Version GetVersion() + { + return Version(1,0,0,1,VF_VENDOR); + } + +}; + +// stuff down here is the module-factory stuff. For basic modules you can ignore this. + +class ModuleIdentFactory : public ModuleFactory +{ + public: + ModuleIdentFactory() + { + } + + ~ModuleIdentFactory() + { + } + + virtual Module * CreateModule() + { + return new ModuleIdent; + } + +}; + + +extern "C" void * init_module( void ) +{ + return new ModuleIdentFactory; +} + -- cgit v1.2.3