ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/ermyth/modules/chanserv/version.C
Revision: 1.2
Committed: Sat Jul 21 13:23:19 2007 UTC (19 years, 4 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.1: +1 -1 lines
Log Message:
- added rcsid to some files
- more documentation tweaks
- made most protocol commands local to phandler.C
- added ircd metadata (inspircd only for now)
- added inspircd swhois support

File Contents

# User Rev Content
1 pippijn 1.1 #include "atheme.h"
2    
3 pippijn 1.2 static char const rcsid[] = "$Id$";
4 pippijn 1.1
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     }