mirror of
https://github.com/anope/anope.git
synced 2026-07-07 16:23:14 +02:00
Improve the layout of types that inherit from another type.
This commit is contained in:
@@ -22,7 +22,8 @@ static SeenInfo *FindInfo(const Anope::string &nick);
|
||||
typedef Anope::hash_map<SeenInfo *> database_map;
|
||||
database_map database;
|
||||
|
||||
struct SeenInfo : Serializable
|
||||
struct SeenInfo
|
||||
: Serializable
|
||||
{
|
||||
Anope::string nick;
|
||||
Anope::string vhost;
|
||||
@@ -109,7 +110,8 @@ static bool ShouldHide(const Anope::string &channel, User *u)
|
||||
return false;
|
||||
}
|
||||
|
||||
class CommandOSSeen : public Command
|
||||
class CommandOSSeen
|
||||
: public Command
|
||||
{
|
||||
public:
|
||||
CommandOSSeen(Module *creator) : Command(creator, "operserv/seen", 1, 2)
|
||||
@@ -180,7 +182,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class CommandSeen : public Command
|
||||
class CommandSeen
|
||||
: public Command
|
||||
{
|
||||
void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
@@ -368,7 +371,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class CSSeen : public Module
|
||||
class CSSeen
|
||||
: public Module
|
||||
{
|
||||
Serialize::Type seeninfo_type;
|
||||
CommandSeen commandseen;
|
||||
|
||||
Reference in New Issue
Block a user