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 * ---------------------------------------------------
23 /* $ModDesc: Sends the /LUSERS on connect */
25 // This has to be the simplest module ever.
26 // The RFC doesnt specify that you should send the /LUSERS numerics
27 // on connect, but someone asked for it, so its in a module.
29 class ModuleConnLUSERS : public Module
40 virtual ~ModuleConnLUSERS()
45 virtual Version GetVersion()
47 return Version(1,0,0,1,VF_VENDOR);
50 virtual void OnUserConnect(userrec* user)
52 Srv->CallCommandHandler("LUSERS", NULL, 0, user);
58 // The ModuleConnLUSERSFactory class inherits from ModuleFactory
59 // and creates a ModuleConnLUSERS object when requested.
62 class ModuleConnLUSERSFactory : public ModuleFactory
65 ModuleConnLUSERSFactory()
69 ~ModuleConnLUSERSFactory()
73 virtual Module * CreateModule()
75 return new ModuleConnLUSERS;
82 // The "C" linkage factory0() function creates the ModuleConnLUSERSFactory
83 // class for this library
86 extern "C" void * init_module( void )
88 return new ModuleConnLUSERSFactory;