summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-12-17 13:59:49 +0000
committerSadie Powell <sadie@witchery.services>2023-12-17 13:59:49 +0000
commit6538641e8703084460df70d04196ac271eff1266 (patch)
tree2bf8ab8fdd0fb4839d86607826bc09c3366e3870 /modules/extra
parenteb0e5c89b2a1e59091001ffd0e54582c2ff04212 (diff)
Remove some unnecessary spaces that break editor indentation.
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/m_ldap.cpp24
-rw-r--r--modules/extra/m_ldap_authentication.cpp8
-rw-r--r--modules/extra/m_ldap_oper.cpp4
-rw-r--r--modules/extra/m_mysql.cpp8
-rw-r--r--modules/extra/m_regex_pcre2.cpp6
-rw-r--r--modules/extra/m_regex_posix.cpp6
-rw-r--r--modules/extra/m_regex_tre.cpp6
-rw-r--r--modules/extra/m_sql_authentication.cpp4
-rw-r--r--modules/extra/m_sql_log.cpp2
-rw-r--r--modules/extra/m_sql_oper.cpp4
-rw-r--r--modules/extra/m_sqlite.cpp6
-rw-r--r--modules/extra/m_ssl_gnutls.cpp20
-rw-r--r--modules/extra/m_ssl_openssl.cpp6
-rw-r--r--modules/extra/stats/cs_fantasy_stats.cpp8
-rw-r--r--modules/extra/stats/cs_fantasy_top.cpp12
-rw-r--r--modules/extra/stats/irc2sql/irc2sql.h4
-rw-r--r--modules/extra/stats/m_chanstats.cpp14
17 files changed, 71 insertions, 71 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index a92385c7d..73520e553 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -44,7 +44,7 @@ static Pipe *me;
class LDAPRequest
{
- public:
+public:
LDAPService *service;
LDAPInterface *inter;
LDAPMessage *message = nullptr; /* message returned by ldap_ */
@@ -76,7 +76,7 @@ class LDAPBind : public LDAPRequest
{
Anope::string who, pass;
- public:
+public:
LDAPBind(LDAPService *s, LDAPInterface *i, const Anope::string &w, const Anope::string &p)
: LDAPRequest(s, i)
, who(w)
@@ -93,7 +93,7 @@ class LDAPSearchRequest : public LDAPRequest
Anope::string base;
Anope::string filter;
- public:
+public:
LDAPSearchRequest(LDAPService *s, LDAPInterface *i, const Anope::string &b, const Anope::string &f)
: LDAPRequest(s, i)
, base(b)
@@ -110,7 +110,7 @@ class LDAPAdd : public LDAPRequest
Anope::string dn;
LDAPMods attributes;
- public:
+public:
LDAPAdd(LDAPService *s, LDAPInterface *i, const Anope::string &d, const LDAPMods &attr)
: LDAPRequest(s, i)
, dn(d)
@@ -126,7 +126,7 @@ class LDAPDel : public LDAPRequest
{
Anope::string dn;
- public:
+public:
LDAPDel(LDAPService *s, LDAPInterface *i, const Anope::string &d)
: LDAPRequest(s, i)
, dn(d)
@@ -142,7 +142,7 @@ class LDAPModify : public LDAPRequest
Anope::string base;
LDAPMods attributes;
- public:
+public:
LDAPModify(LDAPService *s, LDAPInterface *i, const Anope::string &b, const LDAPMods &attr)
: LDAPRequest(s, i)
, base(b)
@@ -164,7 +164,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
time_t last_connect = 0;
- public:
+public:
static LDAPMod **BuildMods(const LDAPMods &attributes)
{
LDAPMod **mods = new LDAPMod*[attributes.size() + 1];
@@ -204,7 +204,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
delete [] mods;
}
- private:
+private:
#ifdef _WIN32
// Windows LDAP does not implement this so we need to do it.
int ldap_initialize(LDAP** ldap, const char* url)
@@ -299,7 +299,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
this->Unlock();
}
- public:
+public:
typedef std::vector<LDAPRequest *> query_queue;
query_queue queries, results;
Mutex process_mutex; /* held when processing requests not in either queue */
@@ -381,7 +381,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
QueueRequest(mod);
}
- private:
+private:
void BuildReply(int res, LDAPRequest *req)
{
LDAPResult *ldap_result = req->result = new LDAPResult();
@@ -480,7 +480,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
process_mutex.Unlock();
}
- public:
+public:
void Run() override
{
while (!this->GetExitState())
@@ -505,7 +505,7 @@ class ModuleLDAP : public Module, public Pipe
{
std::map<Anope::string, LDAPService *> LDAPServices;
- public:
+public:
ModuleLDAP(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp
index d49daf284..cb6a984fd 100644
--- a/modules/extra/m_ldap_authentication.cpp
+++ b/modules/extra/m_ldap_authentication.cpp
@@ -40,7 +40,7 @@ class IdentifyInterface : public LDAPInterface
{
IdentifyInfo *ii;
- public:
+public:
IdentifyInterface(Module *m, IdentifyInfo *i) : LDAPInterface(m), ii(i) { }
~IdentifyInterface()
@@ -131,7 +131,7 @@ class OnIdentifyInterface : public LDAPInterface
{
Anope::string uid;
- public:
+public:
OnIdentifyInterface(Module *m, const Anope::string &i) : LDAPInterface(m), uid(i) { }
void OnDelete() override
@@ -174,7 +174,7 @@ class OnIdentifyInterface : public LDAPInterface
class OnRegisterInterface : public LDAPInterface
{
- public:
+public:
OnRegisterInterface(Module *m) : LDAPInterface(m) { }
void OnResult(const LDAPResult &r) override
@@ -198,7 +198,7 @@ class ModuleLDAPAuthentication : public Module
Anope::string password_attribute;
Anope::string disable_register_reason;
Anope::string disable_email_reason;
- public:
+public:
ModuleLDAPAuthentication(const Anope::string &modname, const Anope::string &creator) :
Module(modname, creator, EXTRA | VENDOR), ldap("LDAPProvider", "ldap/main"), orinterface(this),
dn(this, "m_ldap_authentication_dn")
diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp
index 0a3c2c71a..744979096 100644
--- a/modules/extra/m_ldap_oper.cpp
+++ b/modules/extra/m_ldap_oper.cpp
@@ -16,7 +16,7 @@ class IdentifyInterface : public LDAPInterface
{
Reference<User> u;
- public:
+public:
IdentifyInterface(Module *m, User *user) : LDAPInterface(m), u(user)
{
}
@@ -83,7 +83,7 @@ class LDAPOper : public Module
Anope::string password;
Anope::string basedn;
Anope::string filter;
- public:
+public:
LDAPOper(const Anope::string &modname, const Anope::string &creator) :
Module(modname, creator, EXTRA | VENDOR), ldap("LDAPProvider", "ldap/main")
{
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp
index 0ec7f8989..45a8793b0 100644
--- a/modules/extra/m_mysql.cpp
+++ b/modules/extra/m_mysql.cpp
@@ -63,7 +63,7 @@ class MySQLResult : public Result
{
MYSQL_RES *res = nullptr;
- public:
+public:
MySQLResult(unsigned int i, const Query &q, const Anope::string &fq, MYSQL_RES *r) : Result(i, q, fq), res(r)
{
unsigned num_fields = res ? mysql_num_fields(res) : 0;
@@ -124,7 +124,7 @@ class MySQLService : public Provider
*/
Anope::string Escape(const Anope::string &query);
- public:
+public:
/* Locked by the SQL thread when a query is pending on this database,
* prevents us from deleting a connection while a query is executing
* in the thread
@@ -158,7 +158,7 @@ class MySQLService : public Provider
*/
class DispatcherThread : public Thread, public Condition
{
- public:
+public:
DispatcherThread() : Thread() { }
void Run() override;
@@ -170,7 +170,7 @@ class ModuleSQL : public Module, public Pipe
{
/* SQL connections */
std::map<Anope::string, MySQLService *> MySQLServices;
- public:
+public:
/* Pending query requests */
std::deque<QueryRequest> QueryRequests;
/* Pending finished requests with results */
diff --git a/modules/extra/m_regex_pcre2.cpp b/modules/extra/m_regex_pcre2.cpp
index 2d2be3916..062cc7bcc 100644
--- a/modules/extra/m_regex_pcre2.cpp
+++ b/modules/extra/m_regex_pcre2.cpp
@@ -18,7 +18,7 @@ class PCRERegex : public Regex
{
pcre2_code *regex;
- public:
+public:
PCRERegex(const Anope::string &expr) : Regex(expr)
{
int errcode;
@@ -49,7 +49,7 @@ class PCRERegex : public Regex
class PCRERegexProvider : public RegexProvider
{
- public:
+public:
PCRERegexProvider(Module *creator) : RegexProvider(creator, "regex/pcre") { }
Regex *Compile(const Anope::string &expression) override
@@ -62,7 +62,7 @@ class ModuleRegexPCRE : public Module
{
PCRERegexProvider pcre_regex_provider;
- public:
+public:
ModuleRegexPCRE(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR),
pcre_regex_provider(this)
{
diff --git a/modules/extra/m_regex_posix.cpp b/modules/extra/m_regex_posix.cpp
index add8ab084..883375f7f 100644
--- a/modules/extra/m_regex_posix.cpp
+++ b/modules/extra/m_regex_posix.cpp
@@ -14,7 +14,7 @@ class POSIXRegex : public Regex
{
regex_t regbuf;
- public:
+public:
POSIXRegex(const Anope::string &expr) : Regex(expr)
{
int err = regcomp(&this->regbuf, expr.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE);
@@ -40,7 +40,7 @@ class POSIXRegex : public Regex
class POSIXRegexProvider : public RegexProvider
{
- public:
+public:
POSIXRegexProvider(Module *creator) : RegexProvider(creator, "regex/posix") { }
Regex *Compile(const Anope::string &expression) override
@@ -53,7 +53,7 @@ class ModuleRegexPOSIX : public Module
{
POSIXRegexProvider posix_regex_provider;
- public:
+public:
ModuleRegexPOSIX(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR),
posix_regex_provider(this)
{
diff --git a/modules/extra/m_regex_tre.cpp b/modules/extra/m_regex_tre.cpp
index 4ff111b6a..fe564246f 100644
--- a/modules/extra/m_regex_tre.cpp
+++ b/modules/extra/m_regex_tre.cpp
@@ -15,7 +15,7 @@ class TRERegex : public Regex
{
regex_t regbuf;
- public:
+public:
TRERegex(const Anope::string &expr) : Regex(expr)
{
int err = regcomp(&this->regbuf, expr.c_str(), REG_EXTENDED | REG_NOSUB);
@@ -41,7 +41,7 @@ class TRERegex : public Regex
class TRERegexProvider : public RegexProvider
{
- public:
+public:
TRERegexProvider(Module *creator) : RegexProvider(creator, "regex/tre") { }
Regex *Compile(const Anope::string &expression) override
@@ -54,7 +54,7 @@ class ModuleRegexTRE : public Module
{
TRERegexProvider tre_regex_provider;
- public:
+public:
ModuleRegexTRE(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR),
tre_regex_provider(this)
{
diff --git a/modules/extra/m_sql_authentication.cpp b/modules/extra/m_sql_authentication.cpp
index 77bd8b3ca..7b1334907 100644
--- a/modules/extra/m_sql_authentication.cpp
+++ b/modules/extra/m_sql_authentication.cpp
@@ -16,7 +16,7 @@ class SQLAuthenticationResult : public SQL::Interface
Reference<User> user;
IdentifyRequest *req;
- public:
+public:
SQLAuthenticationResult(User *u, IdentifyRequest *r) : SQL::Interface(me), user(u), req(r)
{
req->Hold(me);
@@ -81,7 +81,7 @@ class ModuleSQLAuthentication : public Module
ServiceReference<SQL::Provider> SQL;
- public:
+public:
ModuleSQLAuthentication(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
me = this;
diff --git a/modules/extra/m_sql_log.cpp b/modules/extra/m_sql_log.cpp
index e64b0ebd4..725afb933 100644
--- a/modules/extra/m_sql_log.cpp
+++ b/modules/extra/m_sql_log.cpp
@@ -14,7 +14,7 @@ class SQLLog : public Module
std::set<Anope::string> inited;
Anope::string table;
- public:
+public:
SQLLog(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR | EXTRA)
{
}
diff --git a/modules/extra/m_sql_oper.cpp b/modules/extra/m_sql_oper.cpp
index 4be312459..12082b514 100644
--- a/modules/extra/m_sql_oper.cpp
+++ b/modules/extra/m_sql_oper.cpp
@@ -39,7 +39,7 @@ class SQLOperResult : public SQL::Interface
}
}
- public:
+public:
SQLOperResult(Module *m, User *u) : SQL::Interface(m), user(u) { }
void OnResult(const SQL::Result &r) override
@@ -130,7 +130,7 @@ class ModuleSQLOper : public Module
ServiceReference<SQL::Provider> SQL;
- public:
+public:
ModuleSQLOper(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
}
diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp
index 28c9d6ed5..c64d42a8d 100644
--- a/modules/extra/m_sqlite.cpp
+++ b/modules/extra/m_sqlite.cpp
@@ -21,7 +21,7 @@ using namespace SQL;
*/
class SQLiteResult : public Result
{
- public:
+public:
SQLiteResult(unsigned int i, const Query &q, const Anope::string &fq) : Result(i, q, fq)
{
}
@@ -48,7 +48,7 @@ class SQLiteService : public Provider
Anope::string Escape(const Anope::string &query);
- public:
+public:
SQLiteService(Module *o, const Anope::string &n, const Anope::string &d);
~SQLiteService();
@@ -72,7 +72,7 @@ class ModuleSQLite : public Module
{
/* SQL connections */
std::map<Anope::string, SQLiteService *> SQLiteServices;
- public:
+public:
ModuleSQLite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
}
diff --git a/modules/extra/m_ssl_gnutls.cpp b/modules/extra/m_ssl_gnutls.cpp
index baa4c977c..1d31cc80e 100644
--- a/modules/extra/m_ssl_gnutls.cpp
+++ b/modules/extra/m_ssl_gnutls.cpp
@@ -24,7 +24,7 @@ namespace GnuTLS { class X509CertCredentials; }
class MySSLService : public SSLService
{
- public:
+public:
MySSLService(Module *o, const Anope::string &n);
/** Initialize a socket to use SSL
@@ -35,7 +35,7 @@ class MySSLService : public SSLService
class SSLSocketIO : public SocketIO
{
- public:
+public:
gnutls_session_t sess = nullptr;
GnuTLS::X509CertCredentials* mycreds;
@@ -92,7 +92,7 @@ namespace GnuTLS
{
class Init
{
- public:
+ public:
Init() { gnutls_global_init(); }
~Init() { gnutls_global_deinit(); }
};
@@ -103,7 +103,7 @@ namespace GnuTLS
{
gnutls_datum_t datum;
- public:
+ public:
Datum(const Anope::string &dat)
{
datum.data = reinterpret_cast<unsigned char *>(const_cast<char *>(dat.data()));
@@ -117,7 +117,7 @@ namespace GnuTLS
{
gnutls_dh_params_t dh_params = nullptr;
- public:
+ public:
void Import(const Anope::string &dhstr)
{
if (dh_params != NULL)
@@ -154,7 +154,7 @@ namespace GnuTLS
*/
class RAIIKey
{
- public:
+ public:
gnutls_x509_privkey_t key;
RAIIKey()
@@ -170,7 +170,7 @@ namespace GnuTLS
}
} key;
- public:
+ public:
/** Import */
X509Key(const Anope::string &keystr)
{
@@ -186,7 +186,7 @@ namespace GnuTLS
{
std::vector<gnutls_x509_crt_t> certs;
- public:
+ public:
/** Import */
X509CertList(const Anope::string &certstr)
{
@@ -240,7 +240,7 @@ namespace GnuTLS
static int cert_callback(gnutls_session_t sess, const gnutls_datum_t* req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t* sign_algos, int sign_algos_length, gnutls_retr2_st* st);
#endif
- public:
+ public:
X509CertList certs;
X509Key key;
@@ -296,7 +296,7 @@ class GnuTLSModule : public Module
{
GnuTLS::Init libinit;
- public:
+public:
GnuTLS::X509CertCredentials *cred = nullptr;
MySSLService service;
diff --git a/modules/extra/m_ssl_openssl.cpp b/modules/extra/m_ssl_openssl.cpp
index 1b504c122..260fa4be5 100644
--- a/modules/extra/m_ssl_openssl.cpp
+++ b/modules/extra/m_ssl_openssl.cpp
@@ -23,7 +23,7 @@ static SSL_CTX *server_ctx, *client_ctx;
class MySSLService : public SSLService
{
- public:
+public:
MySSLService(Module *o, const Anope::string &n);
/** Initialize a socket to use SSL
@@ -34,7 +34,7 @@ class MySSLService : public SSLService
class SSLSocketIO : public SocketIO
{
- public:
+public:
/* The SSL socket for this socket */
SSL *sslsock;
@@ -93,7 +93,7 @@ class SSLModule : public Module
{
Anope::string certfile, keyfile;
- public:
+public:
MySSLService service;
SSLModule(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR), service(this, "ssl")
diff --git a/modules/extra/stats/cs_fantasy_stats.cpp b/modules/extra/stats/cs_fantasy_stats.cpp
index 3416947d1..e9c777534 100644
--- a/modules/extra/stats/cs_fantasy_stats.cpp
+++ b/modules/extra/stats/cs_fantasy_stats.cpp
@@ -14,7 +14,7 @@
class MySQLInterface : public SQL::Interface
{
- public:
+public:
MySQLInterface(Module *o) : SQL::Interface(o) { }
void OnResult(const SQL::Result &r) override
@@ -33,7 +33,7 @@ class MySQLInterface : public SQL::Interface
class CommandCSStats : public Command
{
- public:
+public:
CommandCSStats(Module *creator) : Command (creator, "chanserv/stats", 0, 2)
{
this->SetDesc(_("Displays your Channel Stats"));
@@ -45,7 +45,7 @@ class CommandCSStats : public Command
class CommandCSGStats : public Command
{
- public:
+public:
CommandCSGStats(Module *creator) : Command (creator, "chanserv/gstats", 0, 2)
{
this->SetDesc(_("Displays your Global Stats"));
@@ -65,7 +65,7 @@ class CSStats : public Module
ServiceReference<SQL::Provider> sql;
MySQLInterface sqlinterface;
Anope::string prefix;
- public:
+public:
CSStats(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandcsstats(this), commandcsgstats(this), sql("", ""), sqlinterface(this)
{
diff --git a/modules/extra/stats/cs_fantasy_top.cpp b/modules/extra/stats/cs_fantasy_top.cpp
index e2564db90..0d7b88bdd 100644
--- a/modules/extra/stats/cs_fantasy_top.cpp
+++ b/modules/extra/stats/cs_fantasy_top.cpp
@@ -14,7 +14,7 @@
class MySQLInterface : public SQL::Interface
{
- public:
+public:
MySQLInterface(Module *o) : SQL::Interface(o) { }
void OnResult(const SQL::Result &r) override
@@ -32,7 +32,7 @@ class MySQLInterface : public SQL::Interface
class CommandCSTop : public Command
{
- public:
+public:
CommandCSTop(Module *creator) : Command (creator, "chanserv/top", 0, 2)
{
this->SetDesc(_("Displays the top 3 users of a channel"));
@@ -44,7 +44,7 @@ class CommandCSTop : public Command
class CommandCSTop10 : public Command
{
- public:
+public:
CommandCSTop10(Module *creator) : Command (creator, "chanserv/top10", 0, 2)
{
this->SetDesc(_("Displays the top 10 users of a channel"));
@@ -56,7 +56,7 @@ class CommandCSTop10 : public Command
class CommandCSGTop : public Command
{
- public:
+public:
CommandCSGTop(Module *creator) : Command (creator, "chanserv/gtop", 0, 1)
{
this->SetDesc(_("Displays the top 3 users of the network"));
@@ -67,7 +67,7 @@ class CommandCSGTop : public Command
class CommandCSGTop10 : public Command
{
- public:
+public:
CommandCSGTop10(Module *creator) : Command (creator, "chanserv/gtop10", 0, 1)
{
this->SetDesc(_("Displays the top 10 users of the network"));
@@ -89,7 +89,7 @@ class CSTop : public Module
MySQLInterface sqlinterface;
Anope::string prefix;
- public:
+public:
CSTop(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
commandcstop(this), commandcsgtop(this), commandcstop10(this), commandcsgtop10(this), sql("", ""),
sqlinterface(this)
diff --git a/modules/extra/stats/irc2sql/irc2sql.h b/modules/extra/stats/irc2sql/irc2sql.h
index d343837b5..700e28cf2 100644
--- a/modules/extra/stats/irc2sql/irc2sql.h
+++ b/modules/extra/stats/irc2sql/irc2sql.h
@@ -13,7 +13,7 @@
class MySQLInterface : public SQL::Interface
{
- public:
+public:
MySQLInterface(Module *o) : SQL::Interface(o) { }
void OnResult(const SQL::Result &r) override
@@ -49,7 +49,7 @@ class IRC2SQL : public Module
void CheckTables();
- public:
+public:
IRC2SQL(const Anope::string &modname, const Anope::string &creator) :
Module(modname, creator, EXTRA | VENDOR), sql("", ""), sqlinterface(this), versionreply(this, "CTCPVERSION")
{
diff --git a/modules/extra/stats/m_chanstats.cpp b/modules/extra/stats/m_chanstats.cpp
index 34cd08056..204eb7cd6 100644
--- a/modules/extra/stats/m_chanstats.cpp
+++ b/modules/extra/stats/m_chanstats.cpp
@@ -11,7 +11,7 @@
class CommandCSSetChanstats : public Command
{
- public:
+public:
CommandCSSetChanstats(Module *creator) : Command(creator, "chanserv/set/chanstats", 2, 2)
{
this->SetDesc(_("Turn chanstats statistics on or off"));
@@ -65,7 +65,7 @@ class CommandCSSetChanstats : public Command
class CommandNSSetChanstats : public Command
{
- public:
+public:
CommandNSSetChanstats(Module *creator, const Anope::string &sname = "nickserv/set/chanstats", size_t min = 1 ) : Command(creator, sname, min, min + 1)
{
this->SetDesc(_("Turn chanstats statistics on or off"));
@@ -123,7 +123,7 @@ class CommandNSSetChanstats : public Command
class CommandNSSASetChanstats : public CommandNSSetChanstats
{
- public:
+public:
CommandNSSASetChanstats(Module *creator) : CommandNSSetChanstats(creator, "nickserv/saset/chanstats", 2)
{
this->ClearSyntax();
@@ -146,7 +146,7 @@ class CommandNSSASetChanstats : public CommandNSSetChanstats
class MySQLInterface : public SQL::Interface
{
- public:
+public:
MySQLInterface(Module *o) : SQL::Interface(o) { }
void OnResult(const SQL::Result &r) override
@@ -483,7 +483,7 @@ class MChanstats : public Module
}
- public:
+public:
MChanstats(const Anope::string &modname, const Anope::string &creator) :
Module(modname, creator, EXTRA | VENDOR),
cs_stats(this, "CS_STATS"), ns_stats(this, "NS_STATS"),
@@ -547,7 +547,7 @@ class MChanstats : public Module
return EVENT_CONTINUE;
}
- private:
+private:
void OnModeChange(Channel *c, User *u)
{
if (!u || !u->Account() || !c->ci || !cs_stats.HasExt(c->ci))
@@ -559,7 +559,7 @@ class MChanstats : public Module
this->RunQuery(query);
}
- public:
+public:
void OnPreUserKicked(const MessageSource &source, ChanUserContainer *cu, const Anope::string &kickmsg) override
{
if (!cu->chan->ci || !cs_stats.HasExt(cu->chan->ci))