]> jfr.im git - irc/unrealircd/unrealircd.git/blob - m_template.cpp
- Undid that. Version is now 3.3-willneverbereleased.
[irc/unrealircd/unrealircd.git] / m_template.cpp
1 /*
2 * IRC - Internet Relay Chat, src/modules/%FILE%
3 * (C) 2005 The UnrealIRCd Team
4 *
5 * See file AUTHORS in IRC package for additional names of
6 * the programmers.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 1, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22 extern "C"
23 {
24 #include "config.h"
25 #include "struct.h"
26 #include "common.h"
27 #include "sys.h"
28 #include "numeric.h"
29 #include "msg.h"
30 #include "proto.h"
31 #include "channel.h"
32 #include <time.h>
33 #include <sys/stat.h>
34 #include <stdio.h>
35 #include <stdlib.h>
36 #include <string.h>
37 #ifdef _WIN32
38 #include <io.h>
39 #endif
40 #include <fcntl.h>
41 #include "h.h"
42 #ifdef STRIPBADWORDS
43 #include "badwords.h"
44 #endif
45 #ifdef _WIN32
46 #include "version.h"
47 #endif
48 }
49 extern "C" DLLFUNC CMD_FUNC(m_COMMAND);
50
51 #define MSG_UCOMMAND "UCOMMAND"
52 #define TOK_UCOMMAND "%%"
53
54 ModuleHeader MOD_HEADER(m_COMMAND)
55 = {
56 "m_COMMAND",
57 "$Id$",
58 "command /COMMAND",
59 "3.2-b8-1",
60 NULL
61 };
62
63 extern "C" DLLFUNC int MOD_INIT(m_COMMAND)(ModuleInfo *modinfo)
64 {
65 CommandAdd(modinfo->handle, MSG_UCOMMAND, TOK_UCOMMAND, m_COMMAND, MAXPARA, M_USER|M_SERVER);
66 MARK_AS_OFFICIAL_MODULE(modinfo);
67 return MOD_SUCCESS;
68 }
69
70 extern "C" DLLFUNC int MOD_LOAD(m_COMMAND)(int module_load)
71 {
72 return MOD_SUCCESS;
73 }
74
75 extern "C" DLLFUNC int MOD_UNLOAD(m_COMMAND)(int module_unload)
76 {
77 return MOD_SUCCESS;
78 }
79
80 extern "C" DLLFUNC CMD_FUNC(m_COMMAND)
81 {
82 return 0;
83 }
84