]>
jfr.im git - irc/unrealircd/unrealircd.git/blob - m_template.cpp
2 * IRC - Internet Relay Chat, src/modules/%FILE%
3 * (C) 2005 The UnrealIRCd Team
5 * See file AUTHORS in IRC package for additional names of
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)
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.
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.
49 extern "C" DLLFUNC
CMD_FUNC(m_COMMAND
);
51 #define MSG_UCOMMAND "UCOMMAND"
52 #define TOK_UCOMMAND "%%"
54 ModuleHeader
MOD_HEADER(m_COMMAND
)
63 extern "C" DLLFUNC
int MOD_INIT(m_COMMAND
)(ModuleInfo
*modinfo
)
65 CommandAdd(modinfo
->handle
, MSG_UCOMMAND
, TOK_UCOMMAND
, m_COMMAND
, MAXPARA
, M_USER
|M_SERVER
);
66 MARK_AS_OFFICIAL_MODULE(modinfo
);
70 extern "C" DLLFUNC
int MOD_LOAD(m_COMMAND
)(int module_load
)
75 extern "C" DLLFUNC
int MOD_UNLOAD(m_COMMAND
)(int module_unload
)
80 extern "C" DLLFUNC
CMD_FUNC(m_COMMAND
)