with a new module API. Is currently not autoconf'ied, makefile'ed, etc.
May the screaming commence.
- Changed Velcro/build script to fix a bug
+- Changed Velcro/build to actually be able to compile to get included into
+ u3 space
+- Patched #002531 by Stealth, removing /stats H
{ 'E', "exceptban", stats_exceptban, 0 },
{ 'F', "denydcc", stats_denydcc, 0 },
{ 'G', "gline", stats_gline, FLAGS_AS_PARA },
- { 'H', "link", stats_links, 0 },
{ 'I', "allow", stats_allow, 0 },
{ 'K', "kline", stats_kline, 0 },
{ 'L', "linkinfoall", stats_linkinfoall, SERVER_AS_PARA },
{ 'e', "exceptthrottle",stats_exceptthrottle, 0 },
{ 'f', "spamfilter", stats_spamfilter, FLAGS_AS_PARA },
{ 'g', "gline", stats_gline, FLAGS_AS_PARA },
- { 'h', "link", stats_links, 0 },
{ 'j', "officialchans", stats_officialchannels, 0 },
{ 'k', "kline", stats_kline, 0 },
{ 'l', "linkinfo", stats_linkinfo, SERVER_AS_PARA },
};
implementation:
+extern "C"
+{
+#include "config.h"
+#include "struct.h"
+#include "common.h"
+#include "sys.h"
+#include "numeric.h"
+#include "msg.h"
+#include "proto.h"
+#include "channel.h"
+#include <time.h>
+#include <sys/stat.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#ifdef _WIN32
+#include <io.h>
+#endif
+#include <fcntl.h>
+#include "h.h"
+#ifdef STRIPBADWORDS
+#include "badwords.h"
+#endif
+#ifdef _WIN32
+#include "version.h"
+#endif
+}
+extern "C" DLLFUNC CMD_FUNC(m_COMMAND);
+
+#define MSG_UCOMMAND "UCOMMAND"
+#define TOK_UCOMMAND "%%"
+
+ModuleHeader MOD_HEADER(m_COMMAND)
+ = {
+ "Velcro",
+ "$Id$",
+ "Velcro module system",
+ "3.2-b8-1",
+ NULL
+ };
+
+extern "C" DLLFUNC int MOD_INIT(m_COMMAND)(ModuleInfo *modinfo)
+{
+ CommandAdd(modinfo->handle, MSG_UCOMMAND, TOK_UCOMMAND, m_COMMAND, MAXPARA, M_USER|M_SERVER);
+ MARK_AS_OFFICIAL_MODULE(modinfo);
+ return MOD_SUCCESS;
+}
+
+extern "C" DLLFUNC int MOD_LOAD(m_COMMAND)(int module_load)
+{
+ return MOD_SUCCESS;
+}
+
+extern "C" DLLFUNC int MOD_UNLOAD(m_COMMAND)(int module_unload)
+{
+ return MOD_SUCCESS;
+}
+
+extern "C" DLLFUNC CMD_FUNC(m_COMMAND)
+{
+ return 0;
+}
+
using namespace std;