mirror of
https://github.com/anope/anope.git
synced 2026-06-29 11:16:38 +02:00
One compiles, oh my!
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1547 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+4
-1
@@ -178,7 +178,10 @@ extern int strncasecmp(const char *, const char *, size_t);
|
||||
#define MARK_DEPRECATED
|
||||
#endif
|
||||
|
||||
|
||||
/** XXX: we need to grab these from inspircd -- w00t
|
||||
*/
|
||||
#define DllExport
|
||||
#define CoreExport
|
||||
|
||||
/** This definition is used as shorthand for the various classes
|
||||
* and functions needed to make a module loadable by the OS.
|
||||
|
||||
+17
-23
@@ -18,34 +18,28 @@
|
||||
int do_act(User * u);
|
||||
void myBotServHelp(User * u);
|
||||
|
||||
/**
|
||||
* Create the command, and tell anope about it.
|
||||
* @param argc Argument count
|
||||
* @param argv Argument list
|
||||
* @return MOD_CONT to allow the module, MOD_STOP to stop it
|
||||
**/
|
||||
int AnopeInit(int argc, char **argv)
|
||||
class BSAct : public Module
|
||||
{
|
||||
Command *c;
|
||||
public:
|
||||
BSAct(const std::string &creator) : Module(creator)
|
||||
{
|
||||
Command *c;
|
||||
|
||||
moduleAddAuthor("Anope");
|
||||
moduleAddVersion("$Id$");
|
||||
moduleSetType(CORE);
|
||||
c = createCommand("ACT", do_act, NULL, BOT_HELP_ACT, -1, -1, -1, -1);
|
||||
moduleAddCommand(BOTSERV, c, MOD_UNIQUE);
|
||||
moduleAddAuthor("Anope");
|
||||
moduleAddVersion("$Id$");
|
||||
moduleSetType(CORE);
|
||||
c = createCommand("ACT", do_act, NULL, BOT_HELP_ACT, -1, -1, -1, -1);
|
||||
moduleAddCommand(BOTSERV, c, MOD_UNIQUE);
|
||||
|
||||
moduleSetBotHelp(myBotServHelp);
|
||||
moduleSetBotHelp(myBotServHelp);
|
||||
}
|
||||
|
||||
return MOD_CONT;
|
||||
}
|
||||
~BSAct()
|
||||
{
|
||||
|
||||
/**
|
||||
* Unload the module
|
||||
**/
|
||||
void AnopeFini(void)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the help response to Anopes /bs help output.
|
||||
@@ -91,4 +85,4 @@ int do_act(User * u)
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
MODULE_INIT("bs_act")
|
||||
MODULE_INIT(BSAct)
|
||||
|
||||
Reference in New Issue
Block a user