ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/ermyth/modules/chanserv/version.C
Revision: 1.1
Committed: Thu Jul 19 08:24:53 2007 UTC (19 years, 4 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Log Message:
initial import. the most important changes since Atheme are:
- fixed many memory leaks
- fixed many bugs
- converted to C++ and use more STL containers
- added a (not very enhanced yet) perl module
- greatly improved XML-RPC speed
- added a JSON-RPC module with code from json-cpp
- added a valgrind memcheck module to operserv
- added a more object oriented base64 implementation
- added a specialised unit test framework
- improved stability
- use gettimeofday() if available
- reworked adding/removing commands
- MemoServ IGNORE DEL can now remove indices

File Contents

# User Rev Content
1 pippijn 1.1 #include "atheme.h"
2    
3     static char const rcsid[] = "$Id";
4    
5     DECLARE_MODULE_V1 ("chanserv/version", false, _modinit, _moddeinit, rcsid, "The Ermyth Team <http://ermyth.schmorp.de>");
6    
7     static void cs_cmd_version (sourceinfo_t *si, int parc, char *parv[]);
8    
9     command_t cs_version = { "VERSION", N_("Displays version information of the services."),
10     AC_NONE, 0, cs_cmd_version
11     };
12    
13     cmdvec *cs_cmdtree;
14    
15     void
16     _modinit (module_t *m)
17     {
18     MODULE_USE_SYMBOL_T (cs_cmdtree, cmdvec, "chanserv/main", "cs_cmdtree");
19    
20     cs_cmdtree << cs_version;
21     }
22    
23     void
24     _moddeinit ()
25     {
26     cs_cmdtree >> cs_version;
27     }
28    
29     static void
30     cs_cmd_version (sourceinfo_t *si, int parc, char *parv[])
31     {
32     char buf[BUFSIZE];
33     snprintf (buf, BUFSIZE, PACKAGE_NAME " %s #%s", version, generation);
34     command_success_string (si, buf, "%s", buf);
35     return;
36     }