diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-14 14:01:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-14 14:01:57 +0000 |
commit | d067ea709c394b107ea493fd1a74f35d56fb4889 (patch) | |
tree | d85686a9685b83d3a8a995713e912de69e2ad9f2 /src/modules | |
parent | 580632d29ae6421afe7b2d4bd97323ace3bbdced (diff) |
Added m_ident skeleton
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1087 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ident.cpp | 81 |
1 files changed, 81 insertions, 0 deletions
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: + * <brain@chatspike.net> + * <Craig@chatspike.net> + * + * Written by Craig Edwards, Craig McLure, and others. + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +#include <stdio.h> +#include <string> +#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; +} + |