1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
21 /* $ModDesc: Sends the /LUSERS on connect */
23 // This has to be the simplest module ever.
24 // The RFC doesnt specify that you should send the /LUSERS numerics
25 // on connect, but someone asked for it, so its in a module.
27 class ModuleConnLUSERS : public Module
38 virtual ~ModuleConnLUSERS()
43 virtual Version GetVersion()
45 return Version(1,0,0,1,VF_VENDOR);
48 virtual void OnUserConnect(userrec* user)
50 Srv->CallCommandHandler("LUSERS", NULL, 0, user);
56 // The ModuleConnLUSERSFactory class inherits from ModuleFactory
57 // and creates a ModuleConnLUSERS object when requested.
60 class ModuleConnLUSERSFactory : public ModuleFactory
63 ModuleConnLUSERSFactory()
67 ~ModuleConnLUSERSFactory()
71 virtual Module * CreateModule()
73 return new ModuleConnLUSERS;
80 // The "C" linkage factory0() function creates the ModuleConnLUSERSFactory
81 // class for this library
84 extern "C" void * init_module( void )
86 return new ModuleConnLUSERSFactory;