From 9124a3be5347317918d9fb95991bdb2dd3818c99 Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 6 Jan 2010 20:09:48 +0000 Subject: Fixed windows build and cleaned up a few small things git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2736 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modes.h | 2 +- include/modules.h | 12 ++++++------ include/services.h | 4 ++-- include/users.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/modes.h b/include/modes.h index 34e3ce463..a4692397e 100644 --- a/include/modes.h +++ b/include/modes.h @@ -66,7 +66,7 @@ enum ModeType /** This class is a user mode, all user modes use this/inherit from this */ -class UserMode +class CoreExport UserMode { public: diff --git a/include/modules.h b/include/modules.h index c25016bdd..0656e2a4e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -219,12 +219,12 @@ struct ModuleLang_ { enum CommandFlag { - CFLAG_ALLOW_UNREGISTERED = 1, - CFLAG_ALLOW_FORBIDDEN = 2, - CFLAG_ALLOW_SUSPENDED = 4, - CFLAG_ALLOW_UNREGISTEREDCHANNEL = 8, - CFLAG_STRIP_CHANNEL = 16, - CFLAG_DISABLE_FANTASY = 32 + CFLAG_ALLOW_UNREGISTERED, + CFLAG_ALLOW_FORBIDDEN, + CFLAG_ALLOW_SUSPENDED, + CFLAG_ALLOW_UNREGISTEREDCHANNEL, + CFLAG_STRIP_CHANNEL, + CFLAG_DISABLE_FANTASY }; /** Every services command is a class, inheriting from Command. diff --git a/include/services.h b/include/services.h index d92f84f63..a2a328eb5 100644 --- a/include/services.h +++ b/include/services.h @@ -507,7 +507,7 @@ typedef struct { /*************************************************************************/ -class HostInfo +class CoreExport HostInfo { private: std::string Ident; @@ -988,7 +988,7 @@ class CoreExport Channel : public Extensible, public Flags * @param EnforceMLock Should mlock be enforced on this mode change * @param cmodes The modes to set */ - void SetModes(BotInfo *bi, bool EnforceMLock, const std::string &cmodes, ...); + void SetModes(BotInfo *bi, bool EnforceMLock, const char *cmodes, ...); }; /** Channelban type flags diff --git a/include/users.h b/include/users.h index 0458c0455..f3476f055 100644 --- a/include/users.h +++ b/include/users.h @@ -215,6 +215,6 @@ class CoreExport User : public Extensible * @param bi The client setting the mode * @param modes The modes */ - void SetModes(BotInfo *bi, const std::string &modes, ...); + void SetModes(BotInfo *bi, const char *modes, ...); }; -- cgit