1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 02:16:37 +02:00

Mark types that have no inheritors as final.

This commit is contained in:
Sadie Powell
2024-01-23 13:54:16 +00:00
parent a6a0f6c447
commit 72acef4e15
227 changed files with 771 additions and 771 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ enum
* backing each ChanAccess determines whether that ChanAccess has a given
* privilege.
*/
struct CoreExport Privilege
struct CoreExport Privilege final
{
Anope::string name;
Anope::string desc;
@@ -38,7 +38,7 @@ struct CoreExport Privilege
bool operator==(const Privilege &other) const;
};
class CoreExport PrivilegeManager
class CoreExport PrivilegeManager final
{
static std::vector<Privilege> Privileges;
public:
@@ -135,7 +135,7 @@ public:
/* A group of access entries. This is used commonly, for example with ChannelInfo::AccessFor,
* to show what access a user has on a channel because users can match multiple access entries.
*/
class CoreExport AccessGroup
class CoreExport AccessGroup final
{
public:
/* access entries + paths */
+2 -2
View File
@@ -28,7 +28,7 @@ extern CoreExport nickcoreid_map NickCoreIdList;
/* A registered nickname.
* It matters that Base is here before Extensible (it is inherited by Serializable)
*/
class CoreExport NickAlias
class CoreExport NickAlias final
: public Serializable
, public Extensible
{
@@ -106,7 +106,7 @@ public:
* account's display.
* It matters that Base is here before Extensible (it is inherited by Serializable)
*/
class CoreExport NickCore
class CoreExport NickCore final
: public Serializable
, public Extensible
{
+7 -7
View File
@@ -22,7 +22,7 @@ namespace Anope
* allow us to only require one type of string everywhere that can be converted
* at any time to a specific type of string.
*/
class CoreExport string
class CoreExport string final
{
private:
/**
@@ -312,7 +312,7 @@ namespace Anope
inline const string operator+(const char *_str, const string &str) { string tmp(_str); tmp += str; return tmp; }
inline const string operator+(const std::string &_str, const string &str) { string tmp(_str); tmp += str; return tmp; }
struct hash_ci
struct hash_ci final
{
inline size_t operator()(const string &s) const
{
@@ -320,7 +320,7 @@ namespace Anope
}
};
struct hash_cs
struct hash_cs final
{
inline size_t operator()(const string &s) const
{
@@ -328,7 +328,7 @@ namespace Anope
}
};
struct compare
struct compare final
{
inline bool operator()(const string &s1, const string &s2) const
{
@@ -628,7 +628,7 @@ public:
/** A derived form of sepstream, which separates on commas
*/
class commasepstream
class commasepstream final
: public sepstream
{
public:
@@ -639,7 +639,7 @@ public:
/** A derived form of sepstream, which separates on spaces
*/
class spacesepstream
class spacesepstream final
: public sepstream
{
public:
@@ -712,7 +712,7 @@ public:
virtual ~ModuleException() noexcept = default;
};
class CoreExport ConvertException
class CoreExport ConvertException final
: public CoreException
{
public:
+1 -1
View File
@@ -19,7 +19,7 @@ typedef Anope::map<BotInfo *> botinfo_map;
extern CoreExport Serialize::Checker<botinfo_map> BotListByNick, BotListByUID;
/* A service bot (NickServ, ChanServ, a BotServ bot, etc). */
class CoreExport BotInfo
class CoreExport BotInfo final
: public User
, public Serializable
{
+2 -2
View File
@@ -18,7 +18,7 @@ typedef Anope::hash_map<Channel *> channel_map;
extern CoreExport channel_map ChannelList;
/* A user container, there is one of these per user per channel. */
struct ChanUserContainer
struct ChanUserContainer final
: public Extensible
{
User *user;
@@ -29,7 +29,7 @@ struct ChanUserContainer
ChanUserContainer(User *u, Channel *c) : user(u), chan(c) { }
};
class CoreExport Channel
class CoreExport Channel final
: public Base
, public Extensible
{
+3 -3
View File
@@ -15,13 +15,13 @@
#include "anope.h"
#include "channels.h"
struct CommandGroup
struct CommandGroup final
{
Anope::string name, description;
};
/* Used in BotInfo::commands */
struct CommandInfo
struct CommandInfo final
{
typedef Anope::map<CommandInfo> map;
@@ -47,7 +47,7 @@ struct CoreExport CommandReply
};
/* The source for a command */
class CoreExport CommandSource
class CoreExport CommandSource final
{
/* The nick executing the command */
Anope::string nick;
+4 -4
View File
@@ -78,7 +78,7 @@ namespace Configuration
/** Represents a configuration file
*/
class File
class File final
{
Anope::string name;
bool executable;
@@ -98,7 +98,7 @@ namespace Configuration
struct Uplink;
struct CoreExport Conf
struct CoreExport Conf final
: Block
{
/* options:readtimeout */
@@ -153,7 +153,7 @@ namespace Configuration
const Block *GetCommand(CommandSource &);
};
struct Uplink
struct Uplink final
{
Anope::string host;
unsigned port;
@@ -172,7 +172,7 @@ namespace Configuration
* be loaded. If this happens, the error message returned by ModuleException::GetReason will be displayed to the user
* attempting to load the module, or dumped to the console if the ircd is currently loading for the first time.
*/
class CoreExport ConfigException
class CoreExport ConfigException final
: public CoreException
{
public:
+1 -1
View File
@@ -209,7 +209,7 @@ public:
};
template<typename T>
struct ExtensibleRef
struct ExtensibleRef final
: ServiceReference<BaseExtensibleItem<T> >
{
ExtensibleRef(const Anope::string &n) : ServiceReference<BaseExtensibleItem<T> >("Extensible", n) { }
+3 -3
View File
@@ -50,7 +50,7 @@ namespace Anope
/* rfc1459 case insensitive ctype, { = [, } = ], and | = \ */
template<typename char_type>
class rfc1459_ctype
class rfc1459_ctype final
: public ascii_ctype<char_type>
{
public:
@@ -80,7 +80,7 @@ namespace ci
* This class is used to implement ci::string, a case-insensitive, ASCII-
* comparing string class.
*/
struct CoreExport ci_char_traits
struct CoreExport ci_char_traits final
: std::char_traits<char>
{
/** Check if two chars match.
@@ -126,7 +126,7 @@ namespace ci
*/
typedef std::basic_string<char, ci_char_traits, std::allocator<char> > string;
struct CoreExport less
struct CoreExport less final
{
/** Compare two Anope::strings as ci::strings and find which one is less
* @param s1 The first string
+2 -2
View File
@@ -60,7 +60,7 @@ public:
/** This class handles formatting LIST/VIEW replies.
*/
class CoreExport ListFormatter
class CoreExport ListFormatter final
{
public:
typedef std::map<Anope::string, Anope::string> ListEntry;
@@ -78,7 +78,7 @@ public:
/** This class handles formatting INFO replies
*/
class CoreExport InfoFormatter
class CoreExport InfoFormatter final
{
NickCore *nc;
std::vector<std::pair<Anope::string, Anope::string> > replies;
+3 -3
View File
@@ -37,7 +37,7 @@ enum LogType
LOG_DEBUG_4
};
struct LogFile
struct LogFile final
{
Anope::string filename;
std::ofstream stream;
@@ -48,7 +48,7 @@ struct LogFile
};
/* Represents a single log message */
class CoreExport Log
class CoreExport Log final
{
public:
/* Bot that should log this message */
@@ -109,7 +109,7 @@ public:
};
/* Configured in the configuration file, actually does the message logging */
class CoreExport LogInfo
class CoreExport LogInfo final
{
public:
BotInfo *bot = nullptr;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace Mail
extern CoreExport bool Validate(const Anope::string &email);
/* A email message being sent */
class Message
class Message final
: public Thread
{
private:
+2 -2
View File
@@ -14,7 +14,7 @@
#include "anope.h"
#include "serialize.h"
class CoreExport Memo
class CoreExport Memo final
: public Serializable
{
public:
@@ -37,7 +37,7 @@ public:
/* Memo info structures. Since both nicknames and channels can have memos,
* we encapsulate memo data in a MemoInfo to make it easier to handle.
*/
struct CoreExport MemoInfo
struct CoreExport MemoInfo final
{
int16_t memomax = 0;
Serialize::Checker<std::vector<Memo *> > memos;
+3 -3
View File
@@ -232,7 +232,7 @@ public:
};
/* The status a user has on a channel (+v, +h, +o) etc */
class CoreExport ChannelStatus
class CoreExport ChannelStatus final
{
Anope::string modes;
public:
@@ -305,7 +305,7 @@ public:
* This also contains a mode stacker that will combine multiple modes and set
* them on a channel or user at once
*/
class CoreExport ModeManager
class CoreExport ModeManager final
{
public:
@@ -401,7 +401,7 @@ public:
/** Represents a mask set on a channel (b/e/I)
*/
class CoreExport Entry
class CoreExport Entry final
{
Anope::string name;
Anope::string mask;
+4 -4
View File
@@ -162,7 +162,7 @@ enum
};
typedef unsigned short ModType;
struct ModuleVersionC
struct ModuleVersionC final
{
int version_major, version_minor, version_patch;
};
@@ -170,7 +170,7 @@ struct ModuleVersionC
/** Returned by Module::GetVersion, used to see what version of Anope
* a module is compiled against.
*/
class ModuleVersion
class ModuleVersion final
{
private:
int version_major;
@@ -196,7 +196,7 @@ public:
int GetPatch() const;
};
class CoreExport NotImplementedException
class CoreExport NotImplementedException final
: public CoreException
{
};
@@ -1113,7 +1113,7 @@ enum Implementation
/** Used to manage modules.
*/
class CoreExport ModuleManager
class CoreExport ModuleManager final
{
public:
/** Event handler hooks.
+2 -2
View File
@@ -79,7 +79,7 @@ namespace DNS
Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { }
inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; }
struct hash
struct hash final
{
size_t operator()(const Question &q) const
{
@@ -88,7 +88,7 @@ namespace DNS
};
};
struct ResourceRecord
struct ResourceRecord final
: Question
{
unsigned int ttl = 0;
+3 -3
View File
@@ -18,7 +18,7 @@ enum HTTPError
};
/* A message to someone */
struct HTTPReply
struct HTTPReply final
{
HTTPError error = HTTP_ERROR_OK;
Anope::string content_type;
@@ -46,7 +46,7 @@ struct HTTPReply
out.clear();
}
struct Data
struct Data final
{
char *buf;
size_t len;
@@ -81,7 +81,7 @@ struct HTTPReply
};
/* A message from someone */
struct HTTPMessage
struct HTTPMessage final
{
std::map<Anope::string, Anope::string> headers;
std::map<Anope::string, Anope::string> cookies;
+3 -3
View File
@@ -16,7 +16,7 @@ public:
virtual ~LDAPException() noexcept = default;
};
struct LDAPModification
struct LDAPModification final
{
enum LDAPOperation
{
@@ -31,7 +31,7 @@ struct LDAPModification
};
typedef std::vector<LDAPModification> LDAPMods;
struct LDAPAttributes
struct LDAPAttributes final
: public std::map<Anope::string, std::vector<Anope::string>>
{
size_t size(const Anope::string &attr) const
@@ -75,7 +75,7 @@ enum QueryType
QUERY_MODIFY
};
struct LDAPResult
struct LDAPResult final
{
std::vector<LDAPAttributes> messages;
Anope::string error;
+1 -1
View File
@@ -15,7 +15,7 @@ enum NewsType
NEWS_OPER
};
struct NewsMessages
struct NewsMessages final
{
NewsType type;
Anope::string name;
+2 -2
View File
@@ -8,7 +8,7 @@
#pragma once
struct Session
struct Session final
{
cidr addr; /* A cidr (sockaddrs + len) representing this session */
unsigned count = 1; /* Number of clients with this host */
@@ -17,7 +17,7 @@ struct Session
Session(const sockaddrs &ip, int len) : addr(ip, len) { }
};
struct Exception
struct Exception final
: Serializable
{
Anope::string mask; /* Hosts to which this exception applies */
+1 -1
View File
@@ -10,7 +10,7 @@
namespace Redis
{
struct Reply
struct Reply final
{
enum Type
{
+1 -1
View File
@@ -10,7 +10,7 @@
namespace SASL
{
struct Message
struct Message final
{
Anope::string source;
Anope::string target;
+3 -3
View File
@@ -11,7 +11,7 @@
namespace SQL
{
class Data
class Data final
: public Serialize::Data
{
public:
@@ -93,13 +93,13 @@ namespace SQL
/** A SQL query
*/
struct QueryData
struct QueryData final
{
Anope::string data;
bool escape;
};
struct Query
struct Query final
{
Anope::string query;
std::map<Anope::string, QueryData> parameters;
+1 -1
View File
@@ -10,7 +10,7 @@
#include "httpd.h"
class XMLRPCRequest
class XMLRPCRequest final
{
std::map<Anope::string, Anope::string> replies;
+1 -1
View File
@@ -40,7 +40,7 @@ struct CoreExport Oper
static Oper *Find(const Anope::string &name);
};
class CoreExport OperType
class CoreExport OperType final
{
private:
/** The name of this opertype, e.g. "sra".
+2 -2
View File
@@ -245,7 +245,7 @@ public:
virtual Anope::string NormalizeMask(const Anope::string &mask);
};
class CoreExport MessageSource
class CoreExport MessageSource final
{
Anope::string source;
User *u = nullptr;
@@ -285,7 +285,7 @@ public:
};
/** MessageTokenizer allows tokens in the IRC wire format to be read from a string */
class CoreExport MessageTokenizer
class CoreExport MessageTokenizer final
{
private:
/** The message we are parsing tokens from. */
+2 -2
View File
@@ -21,7 +21,7 @@ typedef Anope::hash_map<ChannelInfo *> registered_channel_map;
extern CoreExport Serialize::Checker<registered_channel_map> RegisteredChannelList;
/* AutoKick data. */
class CoreExport AutoKick
class CoreExport AutoKick final
: public Serializable
{
public:
@@ -44,7 +44,7 @@ public:
/* It matters that Base is here before Extensible (it is inherited by Serializable)
*/
class CoreExport ChannelInfo
class CoreExport ChannelInfo final
: public Serializable
, public Extensible
{
+1 -1
View File
@@ -15,7 +15,7 @@
#include "anope.h"
#include "service.h"
class CoreExport RegexException
class CoreExport RegexException final
: public CoreException
{
public:
+2 -2
View File
@@ -108,7 +108,7 @@ public:
* of class that inherits from Serializable. Used for unserializing objects
* of this type, as it requires a function pointer to a static member function.
*/
class CoreExport Serialize::Type
class CoreExport Serialize::Type final
: public Base
{
typedef Serializable* (*unserialize_func)(Serializable *obj, Serialize::Data &);
@@ -242,7 +242,7 @@ public:
* destructed.
*/
template<typename T>
class Serialize::Reference
class Serialize::Reference final
: public ReferenceBase
{
protected:
+1 -1
View File
@@ -37,7 +37,7 @@ namespace Servers
/** Class representing a server
*/
class CoreExport Server
class CoreExport Server final
: public Extensible
{
private:
+1 -1
View File
@@ -160,7 +160,7 @@ public:
}
};
class ServiceAlias
class ServiceAlias final
{
Anope::string t, f;
public:
+1 -1
View File
@@ -14,7 +14,7 @@
#include "services.h"
#include "sockets.h"
class CoreExport SocketEngine
class CoreExport SocketEngine final
{
static const int DefaultSize = 2; // Uplink, mode stacker
public:
+4 -4
View File
@@ -103,7 +103,7 @@ union CoreExport sockaddrs
void ntop(int type, const void *src);
};
class CoreExport cidr
class CoreExport cidr final
{
sockaddrs addr;
Anope::string cidr_ip;
@@ -120,13 +120,13 @@ public:
bool operator==(const cidr &other) const;
bool operator!=(const cidr &other) const;
struct CoreExport hash
struct CoreExport hash final
{
size_t operator()(const cidr &s) const;
};
};
class CoreExport SocketException
class CoreExport SocketException final
: public CoreException
{
public:
@@ -339,7 +339,7 @@ class CoreExport BinarySocket
: public virtual Socket
{
protected:
struct DataBlock
struct DataBlock final
{
char *orig;
char *buf;
+1 -1
View File
@@ -101,7 +101,7 @@ public:
* This will ensure timers are not missed, as well as removing timers that have
* expired and allowing the addition of new ones.
*/
class CoreExport TimerManager
class CoreExport TimerManager final
{
/** A list of timers
*/
+2 -2
View File
@@ -20,7 +20,7 @@ namespace Uplink
}
/* This is the socket to our uplink */
class UplinkSocket
class UplinkSocket final
: public ConnectionSocket
, public BufferedSocket
{
@@ -33,7 +33,7 @@ public:
void OnError(const Anope::string &) override;
/* A message sent over the uplink socket */
class CoreExport Message
class CoreExport Message final
{
MessageSource source;
std::stringstream buffer;
+1 -1
View File
@@ -13,7 +13,7 @@
#include "sockets.h"
/* An Xline, eg, anything added with operserv/akill, or any of the operserv/sxline commands */
class CoreExport XLine
class CoreExport XLine final
: public Serializable
{
void Init();
+1 -1
View File
@@ -9,7 +9,7 @@
#include "module.h"
class BSAutoAssign
class BSAutoAssign final
: public Module
{
public:
+4 -4
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSAssign
class CommandBSAssign final
: public Command
{
public:
@@ -83,7 +83,7 @@ public:
}
};
class CommandBSUnassign
class CommandBSUnassign final
: public Command
{
public:
@@ -147,7 +147,7 @@ public:
}
};
class CommandBSSetNoBot
class CommandBSSetNoBot final
: public Command
{
public:
@@ -205,7 +205,7 @@ public:
}
};
class BSAssign
class BSAssign final
: public Module
{
ExtensibleItem<bool> nobot;
+6 -6
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/bs_badwords.h"
struct BadWordImpl
struct BadWordImpl final
: BadWord
, Serializable
{
@@ -29,7 +29,7 @@ struct BadWordImpl
static Serializable* Unserialize(Serializable *obj, Serialize::Data &);
};
struct BadWordsImpl
struct BadWordsImpl final
: BadWords
{
Serialize::Reference<ChannelInfo> ci;
@@ -147,7 +147,7 @@ Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data)
return bw;
}
class BadwordsDelCallback
class BadwordsDelCallback final
: public NumberList
{
CommandSource &source;
@@ -185,7 +185,7 @@ public:
}
};
class CommandBSBadwords
class CommandBSBadwords final
: public Command
{
private:
@@ -205,7 +205,7 @@ private:
}
else if (!word.empty() && word.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class BadwordsListCallback
class BadwordsListCallback final
: public NumberList
{
ListFormatter &list;
@@ -459,7 +459,7 @@ public:
}
};
class BSBadwords
class BSBadwords final
: public Module
{
CommandBSBadwords commandbsbadwords;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSBot
class CommandBSBot final
: public Command
{
private:
@@ -371,7 +371,7 @@ public:
}
};
class BSBot
class BSBot final
: public Module
{
CommandBSBot commandbsbot;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSBotList
class CommandBSBotList final
: public Command
{
public:
@@ -66,7 +66,7 @@ public:
}
};
class BSBotList
class BSBotList final
: public Module
{
CommandBSBotList commandbsbotlist;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSSay
class CommandBSSay final
: public Command
{
public:
@@ -72,7 +72,7 @@ public:
}
};
class CommandBSAct
class CommandBSAct final
: public Command
{
public:
@@ -132,7 +132,7 @@ public:
}
};
class BSControl
class BSControl final
: public Module
{
CommandBSSay commandbssay;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSInfo
class CommandBSInfo final
: public Command
{
private:
@@ -118,7 +118,7 @@ public:
}
};
class BSInfo
class BSInfo final
: public Module
{
CommandBSInfo commandbsinfo;
+20 -20
View File
@@ -15,7 +15,7 @@
static Module *me;
struct KickerDataImpl
struct KickerDataImpl final
: KickerData
{
KickerDataImpl(Extensible *obj)
@@ -38,7 +38,7 @@ struct KickerDataImpl
ci->Shrink<KickerData>("kickerdata");
}
struct ExtensibleItem
struct ExtensibleItem final
: ::ExtensibleItem<KickerDataImpl>
{
ExtensibleItem(Module *m, const Anope::string &ename) : ::ExtensibleItem<KickerDataImpl>(m, ename) { }
@@ -117,7 +117,7 @@ struct KickerDataImpl
};
};
class CommandBSKick
class CommandBSKick final
: public Command
{
public:
@@ -248,7 +248,7 @@ protected:
}
};
class CommandBSKickAMSG
class CommandBSKickAMSG final
: public CommandBSKickBase
{
public:
@@ -285,7 +285,7 @@ public:
}
};
class CommandBSKickBadwords
class CommandBSKickBadwords final
: public CommandBSKickBase
{
public:
@@ -325,7 +325,7 @@ public:
}
};
class CommandBSKickBolds
class CommandBSKickBolds final
: public CommandBSKickBase
{
public:
@@ -360,7 +360,7 @@ public:
}
};
class CommandBSKickCaps
class CommandBSKickCaps final
: public CommandBSKickBase
{
public:
@@ -457,7 +457,7 @@ public:
}
};
class CommandBSKickColors
class CommandBSKickColors final
: public CommandBSKickBase
{
public:
@@ -492,7 +492,7 @@ public:
}
};
class CommandBSKickFlood
class CommandBSKickFlood final
: public CommandBSKickBase
{
public:
@@ -591,7 +591,7 @@ public:
}
};
class CommandBSKickItalics
class CommandBSKickItalics final
: public CommandBSKickBase
{
public:
@@ -626,7 +626,7 @@ public:
}
};
class CommandBSKickRepeat
class CommandBSKickRepeat final
: public CommandBSKickBase
{
public:
@@ -728,7 +728,7 @@ public:
}
};
class CommandBSKickReverses
class CommandBSKickReverses final
: public CommandBSKickBase
{
public:
@@ -763,7 +763,7 @@ public:
}
};
class CommandBSKickUnderlines
class CommandBSKickUnderlines final
: public CommandBSKickBase
{
public:
@@ -798,7 +798,7 @@ public:
}
};
class CommandBSSetDontKickOps
class CommandBSSetDontKickOps final
: public Command
{
public:
@@ -864,7 +864,7 @@ public:
}
};
class CommandBSSetDontKickVoices
class CommandBSSetDontKickVoices final
: public Command
{
public:
@@ -930,9 +930,9 @@ public:
}
};
struct BanData
struct BanData final
{
struct Data
struct Data final
{
Anope::string mask;
time_t last_use;
@@ -978,7 +978,7 @@ public:
}
};
struct UserData
struct UserData final
{
UserData(Extensible *)
{
@@ -1001,7 +1001,7 @@ struct UserData
Anope::string lastline;
};
class BanDataPurger
class BanDataPurger final
: public Timer
{
public:
@@ -1024,7 +1024,7 @@ public:
}
};
class BSKick
class BSKick final
: public Module
{
ExtensibleItem<BanData> bandata;
+5 -5
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSSet
class CommandBSSet final
: public Command
{
public:
@@ -65,11 +65,11 @@ public:
}
};
class CommandBSSetBanExpire
class CommandBSSetBanExpire final
: public Command
{
public:
class UnbanTimer
class UnbanTimer final
: public Timer
{
Anope::string chname;
@@ -154,7 +154,7 @@ public:
}
};
class CommandBSSetPrivate
class CommandBSSetPrivate final
: public Command
{
public:
@@ -205,7 +205,7 @@ public:
}
};
class BSSet
class BSSet final
: public Module
{
CommandBSSet commandbsset;
+7 -7
View File
@@ -20,7 +20,7 @@ static inline void reset_levels(ChannelInfo *ci)
ci->SetLevel(priv, level);
}
class AccessChanAccess
class AccessChanAccess final
: public ChanAccess
{
public:
@@ -68,7 +68,7 @@ public:
}
};
class AccessAccessProvider
class AccessAccessProvider final
: public AccessProvider
{
public:
@@ -86,7 +86,7 @@ public:
};
AccessAccessProvider* AccessAccessProvider::me;
class CommandCSAccess
class CommandCSAccess final
: public Command
{
void DoAdd(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> &params)
@@ -260,7 +260,7 @@ class CommandCSAccess
source.Reply(_("%s access list is empty."), ci->name.c_str());
else if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AccessDelCallback
class AccessDelCallback final
: public NumberList
{
CommandSource &source;
@@ -365,7 +365,7 @@ class CommandCSAccess
source.Reply(_("%s access list is empty."), ci->name.c_str());
else if (!nick.empty() && nick.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AccessListCallback
class AccessListCallback final
: public NumberList
{
ListFormatter &list;
@@ -638,7 +638,7 @@ public:
}
};
class CommandCSLevels
class CommandCSLevels final
: public Command
{
void DoSet(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> &params)
@@ -863,7 +863,7 @@ public:
}
};
class CSAccess
class CSAccess final
: public Module
{
AccessAccessProvider accessprovider;
+4 -4
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSAKick
class CommandCSAKick final
: public Command
{
void Enforce(CommandSource &source, ChannelInfo *ci)
@@ -204,7 +204,7 @@ class CommandCSAKick
/* Special case: is it a number/list? Only do search if it isn't. */
if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AkickDelCallback
class AkickDelCallback final
: public NumberList
{
CommandSource &source;
@@ -282,7 +282,7 @@ class CommandCSAKick
if (!mask.empty() && isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AkickListCallback
class AkickListCallback final
: public NumberList
{
ListFormatter &list;
@@ -528,7 +528,7 @@ public:
}
};
class CSAKick
class CSAKick final
: public Module
{
CommandCSAKick commandcsakick;
+3 -3
View File
@@ -13,7 +13,7 @@
static Module *me;
class TempBan
class TempBan final
: public Timer
{
private:
@@ -32,7 +32,7 @@ public:
}
};
class CommandCSBan
class CommandCSBan final
: public Command
{
public:
@@ -239,7 +239,7 @@ public:
}
};
class CSBan
class CSBan final
: public Module
{
CommandCSBan commandcsban;
+2 -2
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/bs_badwords.h"
class CommandCSClone
class CommandCSClone final
: public Command
{
void CopySetting(ChannelInfo *ci, ChannelInfo *target_ci, const Anope::string &setting)
@@ -247,7 +247,7 @@ public:
}
};
class CSClone
class CSClone final
: public Module
{
CommandCSClone commandcsclone;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSDrop
class CommandCSDrop final
: public Command
{
public:
@@ -82,7 +82,7 @@ public:
}
};
class CSDrop
class CSDrop final
: public Module
{
CommandCSDrop commandcsdrop;
+2 -2
View File
@@ -13,7 +13,7 @@
#include "module.h"
class CommandCSEnforce
class CommandCSEnforce final
: public Command
{
private:
@@ -263,7 +263,7 @@ public:
}
};
class CSEnforce
class CSEnforce final
: public Module
{
CommandCSEnforce commandcsenforce;
+4 -4
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_entrymsg.h"
struct EntryMsgImpl
struct EntryMsgImpl final
: EntryMsg
, Serializable
{
@@ -41,7 +41,7 @@ struct EntryMsgImpl
static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
};
struct EntryMessageListImpl
struct EntryMessageListImpl final
: EntryMessageList
{
EntryMessageListImpl(Extensible *) { }
@@ -100,7 +100,7 @@ Serializable* EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data
return m;
}
class CommandEntryMessage
class CommandEntryMessage final
: public Command
{
private:
@@ -264,7 +264,7 @@ public:
}
};
class CSEntryMessage
class CSEntryMessage final
: public Module
{
CommandEntryMessage commandentrymsg;
+4 -4
View File
@@ -13,7 +13,7 @@
static std::map<Anope::string, char> defaultFlags;
class FlagsChanAccess
class FlagsChanAccess final
: public ChanAccess
{
public:
@@ -60,7 +60,7 @@ public:
}
};
class FlagsAccessProvider
class FlagsAccessProvider final
: public AccessProvider
{
public:
@@ -78,7 +78,7 @@ public:
};
FlagsAccessProvider* FlagsAccessProvider::ap;
class CommandCSFlags
class CommandCSFlags final
: public Command
{
void DoModify(CommandSource &source, ChannelInfo *ci, Anope::string mask, const Anope::string &flags, const Anope::string &description)
@@ -478,7 +478,7 @@ public:
}
};
class CSFlags
class CSFlags final
: public Module
{
FlagsAccessProvider accessprovider;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSGetKey
class CommandCSGetKey final
: public Command
{
public:
@@ -60,7 +60,7 @@ public:
}
};
class CSGetKey
class CSGetKey final
: public Module
{
CommandCSGetKey commandcsgetkey;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSInfo
class CommandCSInfo final
: public Command
{
public:
@@ -84,7 +84,7 @@ public:
}
};
class CSInfo
class CSInfo final
: public Module
{
CommandCSInfo commandcsinfo;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSInvite
class CommandCSInvite final
: public Command
{
public:
@@ -98,7 +98,7 @@ public:
}
};
class CSInvite
class CSInvite final
: public Module
{
CommandCSInvite commandcsinvite;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSKick
class CommandCSKick final
: public Command
{
public:
@@ -134,7 +134,7 @@ public:
}
};
class CSKick
class CSKick final
: public Module
{
CommandCSKick commandcskick;
+3 -3
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_mode.h"
class CommandCSList
class CommandCSList final
: public Command
{
public:
@@ -171,7 +171,7 @@ public:
}
};
class CommandCSSetPrivate
class CommandCSSetPrivate final
: public Command
{
public:
@@ -240,7 +240,7 @@ public:
}
};
class CSList
class CSList final
: public Module
{
CommandCSList commandcslist;
+5 -5
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_log.h"
struct LogSettingImpl
struct LogSettingImpl final
: LogSetting
, Serializable
{
@@ -79,7 +79,7 @@ struct LogSettingImpl
}
};
struct LogSettingsImpl
struct LogSettingsImpl final
: LogSettings
{
LogSettingsImpl(Extensible *) { }
@@ -100,7 +100,7 @@ struct LogSettingsImpl
}
};
class CommandCSLog
class CommandCSLog final
: public Command
{
public:
@@ -285,7 +285,7 @@ public:
}
};
class CSLog
class CSLog final
: public Module
{
ServiceReference<MemoServService> MSService;
@@ -293,7 +293,7 @@ class CSLog
ExtensibleItem<LogSettingsImpl> logsettings;
Serialize::Type logsetting_type;
struct LogDefault
struct LogDefault final
{
Anope::string service, command, method;
};
+5 -5
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_mode.h"
struct ModeLockImpl
struct ModeLockImpl final
: ModeLock
, Serializable
{
@@ -35,7 +35,7 @@ struct ModeLockImpl
static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
};
struct ModeLocksImpl
struct ModeLocksImpl final
: ModeLocks
{
Serialize::Reference<ChannelInfo> ci;
@@ -244,7 +244,7 @@ Serializable* ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data
return ml;
}
class CommandCSMode
class CommandCSMode final
: public Command
{
bool CanSet(CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self)
@@ -793,7 +793,7 @@ public:
static Anope::map<std::pair<bool, Anope::string> > modes;
class CommandCSModes
class CommandCSModes final
: public Command
{
public:
@@ -911,7 +911,7 @@ public:
}
};
class CSMode
class CSMode final
: public Module
{
CommandCSMode commandcsmode;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSRegister
class CommandCSRegister final
: public Command
{
public:
@@ -111,7 +111,7 @@ public:
};
class CSRegister
class CSRegister final
: public Module
{
CommandCSRegister commandcsregister;
+4 -4
View File
@@ -22,7 +22,7 @@ static SeenInfo *FindInfo(const Anope::string &nick);
typedef Anope::hash_map<SeenInfo *> database_map;
database_map database;
struct SeenInfo
struct SeenInfo final
: Serializable
{
Anope::string nick;
@@ -110,7 +110,7 @@ static bool ShouldHide(const Anope::string &channel, User *u)
return false;
}
class CommandOSSeen
class CommandOSSeen final
: public Command
{
public:
@@ -182,7 +182,7 @@ public:
}
};
class CommandSeen
class CommandSeen final
: public Command
{
void SimpleSeen(CommandSource &source, const std::vector<Anope::string> &params)
@@ -371,7 +371,7 @@ public:
}
};
class CSSeen
class CSSeen final
: public Module
{
Serialize::Type seeninfo_type;
+17 -17
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_mode.h"
class CommandCSSet
class CommandCSSet final
: public Command
{
public:
@@ -65,7 +65,7 @@ public:
}
};
class CommandCSSetAutoOp
class CommandCSSetAutoOp final
: public Command
{
public:
@@ -129,7 +129,7 @@ public:
}
};
class CommandCSSetBanType
class CommandCSSetBanType final
: public Command
{
public:
@@ -197,7 +197,7 @@ public:
}
};
class CommandCSSetDescription
class CommandCSSetDescription final
: public Command
{
public:
@@ -260,7 +260,7 @@ public:
}
};
class CommandCSSetFounder
class CommandCSSetFounder final
: public Command
{
public:
@@ -330,7 +330,7 @@ public:
}
};
class CommandCSSetKeepModes
class CommandCSSetKeepModes final
: public Command
{
public:
@@ -396,7 +396,7 @@ public:
}
};
class CommandCSSetPeace
class CommandCSSetPeace final
: public Command
{
public:
@@ -469,7 +469,7 @@ inline static Anope::string BotModes()
);
}
class CommandCSSetPersist
class CommandCSSetPersist final
: public Command
{
public:
@@ -619,7 +619,7 @@ public:
}
};
class CommandCSSetRestricted
class CommandCSSetRestricted final
: public Command
{
public:
@@ -682,7 +682,7 @@ public:
}
};
class CommandCSSetSecure
class CommandCSSetSecure final
: public Command
{
public:
@@ -746,7 +746,7 @@ public:
}
};
class CommandCSSetSecureFounder
class CommandCSSetSecureFounder final
: public Command
{
public:
@@ -811,7 +811,7 @@ public:
}
};
class CommandCSSetSecureOps
class CommandCSSetSecureOps final
: public Command
{
public:
@@ -874,7 +874,7 @@ public:
}
};
class CommandCSSetSignKick
class CommandCSSetSignKick final
: public Command
{
public:
@@ -952,7 +952,7 @@ public:
}
};
class CommandCSSetSuccessor
class CommandCSSetSuccessor final
: public Command
{
public:
@@ -1047,7 +1047,7 @@ public:
}
};
class CommandCSSetNoexpire
class CommandCSSetNoexpire final
: public Command
{
public:
@@ -1106,14 +1106,14 @@ public:
}
};
class CSSet
class CSSet final
: public Module
{
SerializableExtensibleItem<bool> noautoop, peace, securefounder,
restricted, secure, secureops, signkick, signkick_level, noexpire,
persist;
struct KeepModes
struct KeepModes final
: SerializableExtensibleItem<bool>
{
KeepModes(Module *m, const Anope::string &n) : SerializableExtensibleItem<bool>(m, n) { }
+3 -3
View File
@@ -31,7 +31,7 @@ static ExtensibleItem<CSMiscData> *GetItem(const Anope::string &name)
return it;
}
struct CSMiscData
struct CSMiscData final
: MiscData
, Serializable
{
@@ -90,7 +90,7 @@ static Anope::string GetAttribute(const Anope::string &command)
return command;
}
class CommandCSSetMisc
class CommandCSSetMisc final
: public Command
{
public:
@@ -167,7 +167,7 @@ public:
}
};
class CSSetMisc
class CSSetMisc final
: public Module
{
CommandCSSetMisc commandcssetmisc;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSStatus
class CommandCSStatus final
: public Command
{
public:
@@ -111,7 +111,7 @@ public:
}
};
class CSStatus
class CSStatus final
: public Module
{
CommandCSStatus commandcsstatus;
+5 -5
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/suspend.h"
struct CSSuspendInfo
struct CSSuspendInfo final
: SuspendInfo
, Serializable
{
@@ -52,7 +52,7 @@ struct CSSuspendInfo
}
};
class CommandCSSuspend
class CommandCSSuspend final
: public Command
{
public:
@@ -145,7 +145,7 @@ public:
}
};
class CommandCSUnSuspend
class CommandCSUnSuspend final
: public Command
{
public:
@@ -197,7 +197,7 @@ public:
}
};
class CSSuspend
class CSSuspend final
: public Module
{
CommandCSSuspend commandcssuspend;
@@ -206,7 +206,7 @@ class CSSuspend
Serialize::Type suspend_type;
std::vector<Anope::string> show;
struct trim
struct trim final
{
Anope::string operator()(Anope::string s) const
{
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSSync
class CommandCSSync final
: public Command
{
public:
@@ -53,7 +53,7 @@ public:
}
};
class CSSync
class CSSync final
: public Module
{
CommandCSSync commandcssync;
+3 -3
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/cs_mode.h"
class CommandCSSetKeepTopic
class CommandCSSetKeepTopic final
: public Command
{
public:
@@ -77,7 +77,7 @@ public:
}
};
class CommandCSTopic
class CommandCSTopic final
: public Command
{
ExtensibleRef<bool> topiclock;
@@ -204,7 +204,7 @@ public:
}
};
class CSTopic
class CSTopic final
: public Module
{
CommandCSTopic commandcstopic;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSUnban
class CommandCSUnban final
: public Command
{
public:
@@ -116,7 +116,7 @@ public:
}
};
class CSUnban
class CSUnban final
: public Module
{
CommandCSUnban commandcsunban;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSUp
class CommandCSUp final
: public Command
{
void SetModes(User *u, Channel *c)
@@ -130,7 +130,7 @@ public:
}
};
class CommandCSDown
class CommandCSDown final
: public Command
{
void RemoveAll(User *u, Channel *c)
@@ -228,7 +228,7 @@ public:
}
};
class CSUpDown
class CSUpDown final
: public Module
{
CommandCSUp commandcsup;
+6 -6
View File
@@ -17,7 +17,7 @@ namespace
std::map<Anope::string, std::vector<Anope::string> > permissions;
}
class XOPChanAccess
class XOPChanAccess final
: public ChanAccess
{
public:
@@ -85,7 +85,7 @@ public:
}
};
class XOPAccessProvider
class XOPAccessProvider final
: public AccessProvider
{
public:
@@ -99,7 +99,7 @@ public:
}
};
class CommandCSXOP
class CommandCSXOP final
: public Command
{
private:
@@ -294,7 +294,7 @@ private:
/* Special case: is it a number/list? Only do search if it isn't. */
if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class XOPDelCallback
class XOPDelCallback final
: public NumberList
{
CommandSource &source;
@@ -398,7 +398,7 @@ private:
if (!nick.empty() && nick.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class XOPListCallback
class XOPListCallback final
: public NumberList
{
ListFormatter &list;
@@ -600,7 +600,7 @@ public:
}
};
class CSXOP
class CSXOP final
: public Module
{
XOPAccessProvider accessprovider;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandGLGlobal
class CommandGLGlobal final
: public Command
{
ServiceReference<GlobalService> GService;
@@ -52,7 +52,7 @@ public:
}
};
class GLGlobal
class GLGlobal final
: public Module
{
CommandGLGlobal commandglglobal;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandBSSetGreet
class CommandBSSetGreet final
: public Command
{
public:
@@ -138,7 +138,7 @@ public:
}
};
class CommandNSSASetGreet
class CommandNSSASetGreet final
: public CommandNSSetGreet
{
public:
@@ -165,7 +165,7 @@ public:
}
};
class Greet
class Greet final
: public Module
{
/* channel setting for whether or not greet should be shown */
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHelp
class CommandHelp final
: public Command
{
static const unsigned help_wrap_len = 40;
@@ -183,7 +183,7 @@ public:
}
};
class Help
class Help final
: public Module
{
CommandHelp commandhelp;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSDel
class CommandHSDel final
: public Command
{
public:
@@ -52,7 +52,7 @@ public:
}
};
class CommandHSDelAll
class CommandHSDelAll final
: public Command
{
public:
@@ -98,7 +98,7 @@ public:
}
};
class HSDel
class HSDel final
: public Module
{
CommandHSDel commandhsdel;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSGroup
class CommandHSGroup final
: public Command
{
bool setting = false;
@@ -76,7 +76,7 @@ public:
}
};
class HSGroup
class HSGroup final
: public Module
{
CommandHSGroup commandhsgroup;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSList
class CommandHSList final
: public Command
{
public:
@@ -143,7 +143,7 @@ public:
}
};
class HSList
class HSList final
: public Module
{
CommandHSList commandhslist;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSOff
class CommandHSOff final
: public Command
{
public:
@@ -54,7 +54,7 @@ public:
}
};
class HSOff
class HSOff final
: public Module
{
CommandHSOff commandhsoff;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSOn
class CommandHSOn final
: public Command
{
public:
@@ -60,7 +60,7 @@ public:
}
};
class HSOn
class HSOn final
: public Module
{
CommandHSOn commandhson;
+6 -6
View File
@@ -20,7 +20,7 @@ static ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ")
static void req_send_memos(Module *me, CommandSource &source, const Anope::string &vIdent, const Anope::string &vHost);
struct HostRequest
struct HostRequest final
: Serializable
{
Anope::string nick;
@@ -64,7 +64,7 @@ struct HostRequest
}
};
class CommandHSRequest
class CommandHSRequest final
: public Command
{
bool isvalidchar(char c)
@@ -187,7 +187,7 @@ public:
}
};
class CommandHSActivate
class CommandHSActivate final
: public Command
{
public:
@@ -237,7 +237,7 @@ public:
}
};
class CommandHSReject
class CommandHSReject final
: public Command
{
public:
@@ -294,7 +294,7 @@ public:
}
};
class CommandHSWaiting
class CommandHSWaiting final
: public Command
{
public:
@@ -353,7 +353,7 @@ public:
}
};
class HSRequest
class HSRequest final
: public Module
{
CommandHSRequest commandhsrequest;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandHSSet
class CommandHSSet final
: public Command
{
public:
@@ -105,7 +105,7 @@ public:
}
};
class CommandHSSetAll
class CommandHSSetAll final
: public Command
{
void Sync(const NickAlias *na)
@@ -214,7 +214,7 @@ public:
}
};
class HSSet
class HSSet final
: public Module
{
CommandHSSet commandhsset;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSCancel
class CommandMSCancel final
: public Command
{
public:
@@ -88,7 +88,7 @@ public:
}
};
class MSCancel
class MSCancel final
: public Module
{
CommandMSCancel commandmscancel;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSCheck
class CommandMSCheck final
: public Command
{
public:
@@ -73,7 +73,7 @@ public:
}
};
class MSCheck
class MSCheck final
: public Module
{
CommandMSCheck commandmscheck;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class MemoDelCallback
class MemoDelCallback final
: public NumberList
{
CommandSource &source;
@@ -37,7 +37,7 @@ public:
}
};
class CommandMSDel
class CommandMSDel final
: public Command
{
public:
@@ -146,7 +146,7 @@ public:
}
};
class MSDel
class MSDel final
: public Module
{
CommandMSDel commandmsdel;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSIgnore
class CommandMSIgnore final
: public Command
{
public:
@@ -119,7 +119,7 @@ public:
}
};
class MSIgnore
class MSIgnore final
: public Module
{
CommandMSIgnore commandmsignore;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSInfo
class CommandMSInfo final
: public Command
{
public:
@@ -219,7 +219,7 @@ public:
}
};
class MSInfo
class MSInfo final
: public Module
{
CommandMSInfo commandmsinfo;
+3 -3
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSList
class CommandMSList final
: public Command
{
public:
@@ -66,7 +66,7 @@ public:
if (!param.empty() && isdigit(param[0]))
{
class MemoListCallback
class MemoListCallback final
: public NumberList
{
ListFormatter &list;
@@ -151,7 +151,7 @@ public:
}
};
class MSList
class MSList final
: public Module
{
CommandMSList commandmslist;
+3 -3
View File
@@ -47,7 +47,7 @@ static void rsend_notify(CommandSource &source, MemoInfo *mi, Memo *m, const Ano
m->receipt = false;
}
class MemoListCallback
class MemoListCallback final
: public NumberList
{
CommandSource &source;
@@ -105,7 +105,7 @@ public:
}
};
class CommandMSRead
class CommandMSRead final
: public Command
{
public:
@@ -211,7 +211,7 @@ public:
}
};
class MSRead
class MSRead final
: public Module
{
CommandMSRead commandmsread;
+2 -2
View File
@@ -16,7 +16,7 @@ namespace
ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ");
}
class CommandMSRSend
class CommandMSRSend final
: public Command
{
public:
@@ -89,7 +89,7 @@ public:
}
};
class MSRSend
class MSRSend final
: public Module
{
CommandMSRSend commandmsrsend;
+2 -2
View File
@@ -16,7 +16,7 @@ namespace
ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ");
}
class CommandMSSend
class CommandMSSend final
: public Command
{
public:
@@ -72,7 +72,7 @@ public:
}
};
class MSSend
class MSSend final
: public Module
{
CommandMSSend commandmssend;
+2 -2
View File
@@ -16,7 +16,7 @@ namespace
ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ");
}
class CommandMSSendAll
class CommandMSSendAll final
: public Command
{
public:
@@ -53,7 +53,7 @@ public:
}
};
class MSSendAll
class MSSendAll final
: public Module
{
CommandMSSendAll commandmssendall;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandMSSet
class CommandMSSet final
: public Command
{
private:
@@ -299,7 +299,7 @@ public:
}
};
class MSSet
class MSSet final
: public Module
{
CommandMSSet commandmsset;
+2 -2
View File
@@ -16,7 +16,7 @@ namespace
ServiceReference<MemoServService> memoserv("MemoServService", "MemoServ");
}
class CommandMSStaff
class CommandMSStaff final
: public Command
{
public:
@@ -50,7 +50,7 @@ public:
}
};
class MSStaff
class MSStaff final
: public Module
{
CommandMSStaff commandmsstaff;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandNSAccess
class CommandNSAccess final
: public Command
{
private:
@@ -187,7 +187,7 @@ public:
}
};
class NSAccess
class NSAccess final
: public Module
{
CommandNSAccess commandnsaccess;
+4 -4
View File
@@ -13,14 +13,14 @@
struct AJoinEntry;
struct AJoinList
struct AJoinList final
: Serialize::Checker<std::vector<AJoinEntry *> >
{
AJoinList(Extensible *) : Serialize::Checker<std::vector<AJoinEntry *> >("AJoinEntry") { }
~AJoinList();
};
struct AJoinEntry
struct AJoinEntry final
: Serializable
{
Serialize::Reference<NickCore> owner;
@@ -88,7 +88,7 @@ AJoinList::~AJoinList()
delete ajoin;
}
class CommandNSAJoin
class CommandNSAJoin final
: public Command
{
void DoList(CommandSource &source, NickCore *nc)
@@ -300,7 +300,7 @@ public:
}
};
class NSAJoin
class NSAJoin final
: public Module
{
CommandNSAJoin commandnsajoin;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandNSAList
class CommandNSAList final
: public Command
{
static bool ChannelSort(ChannelInfo *ci1, ChannelInfo *ci2)
@@ -132,7 +132,7 @@ public:
}
};
class NSAList
class NSAList final
: public Module
{
CommandNSAList commandnsalist;
+5 -5
View File
@@ -14,7 +14,7 @@
static Anope::hash_map<NickCore *> certmap;
struct CertServiceImpl
struct CertServiceImpl final
: CertService
{
CertServiceImpl(Module *o) : CertService(o) { }
@@ -28,7 +28,7 @@ struct CertServiceImpl
}
};
struct NSCertListImpl
struct NSCertListImpl final
: NSCertList
{
Serialize::Reference<NickCore> nc;
@@ -121,7 +121,7 @@ public:
nc->Shrink<NSCertList>("certificates");
}
struct ExtensibleItem
struct ExtensibleItem final
: ::ExtensibleItem<NSCertListImpl>
{
ExtensibleItem(Module *m, const Anope::string &ename) : ::ExtensibleItem<NSCertListImpl>(m, ename) { }
@@ -163,7 +163,7 @@ public:
};
};
class CommandNSCert
class CommandNSCert final
: public Command
{
private:
@@ -342,7 +342,7 @@ public:
}
};
class NSCert
class NSCert final
: public Module
{
CommandNSCert commandnscert;
+2 -2
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandNSDrop
class CommandNSDrop final
: public Command
{
public:
@@ -72,7 +72,7 @@ public:
}
};
class NSDrop
class NSDrop final
: public Module
{
CommandNSDrop commandnsdrop;
+2 -2
View File
@@ -15,7 +15,7 @@
#include "module.h"
class CommandNSGetEMail
class CommandNSGetEMail final
: public Command
{
public:
@@ -59,7 +59,7 @@ public:
}
};
class NSGetEMail
class NSGetEMail final
: public Module
{
CommandNSGetEMail commandnsgetemail;
+5 -5
View File
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/ns_cert.h"
class NSGroupRequest
class NSGroupRequest final
: public IdentifyRequest
{
CommandSource source;
@@ -84,7 +84,7 @@ public:
}
};
class CommandNSGroup
class CommandNSGroup final
: public Command
{
public:
@@ -230,7 +230,7 @@ public:
}
};
class CommandNSUngroup
class CommandNSUngroup final
: public Command
{
public:
@@ -294,7 +294,7 @@ public:
}
};
class CommandNSGList
class CommandNSGList final
: public Command
{
public:
@@ -380,7 +380,7 @@ public:
}
};
class NSGroup
class NSGroup final
: public Module
{
CommandNSGroup commandnsgroup;

Some files were not shown because too many files have changed in this diff Show More