diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
| commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
| tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/stats | |
| parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) | |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/stats')
| -rw-r--r-- | modules/stats/cs_fantasy_stats.cpp | 12 | ||||
| -rw-r--r-- | modules/stats/cs_fantasy_top.cpp | 18 | ||||
| -rw-r--r-- | modules/stats/irc2sql/irc2sql.h | 6 | ||||
| -rw-r--r-- | modules/stats/m_chanstats.cpp | 15 |
4 files changed, 34 insertions, 17 deletions
diff --git a/modules/stats/cs_fantasy_stats.cpp b/modules/stats/cs_fantasy_stats.cpp index 75e3442ab..a2595c08c 100644 --- a/modules/stats/cs_fantasy_stats.cpp +++ b/modules/stats/cs_fantasy_stats.cpp @@ -12,7 +12,8 @@ #include "module.h" #include "modules/sql.h" -class MySQLInterface : public SQL::Interface +class MySQLInterface + : public SQL::Interface { public: MySQLInterface(Module *o) : SQL::Interface(o) { } @@ -31,7 +32,8 @@ public: }; -class CommandCSStats : public Command +class CommandCSStats + : public Command { public: CommandCSStats(Module *creator) : Command (creator, "chanserv/stats", 0, 2) @@ -43,7 +45,8 @@ public: void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms); }; -class CommandCSGStats : public Command +class CommandCSGStats + : public Command { public: CommandCSGStats(Module *creator) : Command (creator, "chanserv/gstats", 0, 2) @@ -58,7 +61,8 @@ public: class CSStats; static CSStats *me; -class CSStats : public Module +class CSStats + : public Module { CommandCSStats commandcsstats; CommandCSGStats commandcsgstats; diff --git a/modules/stats/cs_fantasy_top.cpp b/modules/stats/cs_fantasy_top.cpp index ee1e5656f..2c2282648 100644 --- a/modules/stats/cs_fantasy_top.cpp +++ b/modules/stats/cs_fantasy_top.cpp @@ -12,7 +12,8 @@ #include "module.h" #include "modules/sql.h" -class MySQLInterface : public SQL::Interface +class MySQLInterface + : public SQL::Interface { public: MySQLInterface(Module *o) : SQL::Interface(o) { } @@ -30,7 +31,8 @@ public: } }; -class CommandCSTop : public Command +class CommandCSTop + : public Command { public: CommandCSTop(Module *creator) : Command (creator, "chanserv/top", 0, 2) @@ -42,7 +44,8 @@ public: void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms); }; -class CommandCSTop10 : public Command +class CommandCSTop10 + : public Command { public: CommandCSTop10(Module *creator) : Command (creator, "chanserv/top10", 0, 2) @@ -54,7 +57,8 @@ public: void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms); }; -class CommandCSGTop : public Command +class CommandCSGTop + : public Command { public: CommandCSGTop(Module *creator) : Command (creator, "chanserv/gtop", 0, 1) @@ -65,7 +69,8 @@ public: void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms); }; -class CommandCSGTop10 : public Command +class CommandCSGTop10 + : public Command { public: CommandCSGTop10(Module *creator) : Command (creator, "chanserv/gtop10", 0, 1) @@ -79,7 +84,8 @@ public: class CSTop; static CSTop *me; -class CSTop : public Module +class CSTop + : public Module { CommandCSTop commandcstop; CommandCSGTop commandcsgtop; diff --git a/modules/stats/irc2sql/irc2sql.h b/modules/stats/irc2sql/irc2sql.h index c033b2a43..d6944525e 100644 --- a/modules/stats/irc2sql/irc2sql.h +++ b/modules/stats/irc2sql/irc2sql.h @@ -11,7 +11,8 @@ #include "module.h" #include "modules/sql.h" -class MySQLInterface : public SQL::Interface +class MySQLInterface + : public SQL::Interface { public: MySQLInterface(Module *o) : SQL::Interface(o) { } @@ -29,7 +30,8 @@ public: } }; -class IRC2SQL : public Module +class IRC2SQL + : public Module { ServiceReference<SQL::Provider> sql; MySQLInterface sqlinterface; diff --git a/modules/stats/m_chanstats.cpp b/modules/stats/m_chanstats.cpp index e0f72e199..408b1d0a6 100644 --- a/modules/stats/m_chanstats.cpp +++ b/modules/stats/m_chanstats.cpp @@ -9,7 +9,8 @@ #include "module.h" #include "modules/sql.h" -class CommandCSSetChanstats : public Command +class CommandCSSetChanstats + : public Command { public: CommandCSSetChanstats(Module *creator) : Command(creator, "chanserv/set/chanstats", 2, 2) @@ -63,7 +64,8 @@ public: } }; -class CommandNSSetChanstats : public Command +class CommandNSSetChanstats + : public Command { public: CommandNSSetChanstats(Module *creator, const Anope::string &sname = "nickserv/set/chanstats", size_t min = 1 ) : Command(creator, sname, min, min + 1) @@ -121,7 +123,8 @@ public: } }; -class CommandNSSASetChanstats : public CommandNSSetChanstats +class CommandNSSASetChanstats + : public CommandNSSetChanstats { public: CommandNSSASetChanstats(Module *creator) : CommandNSSetChanstats(creator, "nickserv/saset/chanstats", 2) @@ -144,7 +147,8 @@ public: } }; -class MySQLInterface : public SQL::Interface +class MySQLInterface + : public SQL::Interface { public: MySQLInterface(Module *o) : SQL::Interface(o) { } @@ -162,7 +166,8 @@ public: } }; -class MChanstats : public Module +class MChanstats + : public Module { SerializableExtensibleItem<bool> cs_stats, ns_stats; |
