diff options
| author | Sadie Powell <sadie@witchery.services> | 2023-12-17 13:59:49 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2023-12-17 13:59:49 +0000 |
| commit | 6538641e8703084460df70d04196ac271eff1266 (patch) | |
| tree | 2bf8ab8fdd0fb4839d86607826bc09c3366e3870 /include/modules | |
| parent | eb0e5c89b2a1e59091001ffd0e54582c2ff04212 (diff) | |
Remove some unnecessary spaces that break editor indentation.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/bs_badwords.h | 2 | ||||
| -rw-r--r-- | include/modules/bs_kick.h | 4 | ||||
| -rw-r--r-- | include/modules/cs_entrymsg.h | 6 | ||||
| -rw-r--r-- | include/modules/cs_log.h | 6 | ||||
| -rw-r--r-- | include/modules/cs_mode.h | 2 | ||||
| -rw-r--r-- | include/modules/dns.h | 4 | ||||
| -rw-r--r-- | include/modules/encryption.h | 4 | ||||
| -rw-r--r-- | include/modules/httpd.h | 8 | ||||
| -rw-r--r-- | include/modules/ldap.h | 6 | ||||
| -rw-r--r-- | include/modules/ns_cert.h | 6 | ||||
| -rw-r--r-- | include/modules/os_forbid.h | 4 | ||||
| -rw-r--r-- | include/modules/os_ignore.h | 6 | ||||
| -rw-r--r-- | include/modules/os_news.h | 2 | ||||
| -rw-r--r-- | include/modules/os_session.h | 2 | ||||
| -rw-r--r-- | include/modules/pseudoclients/chanserv.h | 2 | ||||
| -rw-r--r-- | include/modules/pseudoclients/global.h | 2 | ||||
| -rw-r--r-- | include/modules/pseudoclients/memoserv.h | 2 | ||||
| -rw-r--r-- | include/modules/pseudoclients/nickserv.h | 2 | ||||
| -rw-r--r-- | include/modules/redis.h | 4 | ||||
| -rw-r--r-- | include/modules/sasl.h | 6 | ||||
| -rw-r--r-- | include/modules/set_misc.h | 2 | ||||
| -rw-r--r-- | include/modules/sql.h | 12 | ||||
| -rw-r--r-- | include/modules/ssl.h | 2 | ||||
| -rw-r--r-- | include/modules/xmlrpc.h | 6 |
24 files changed, 51 insertions, 51 deletions
diff --git a/include/modules/bs_badwords.h b/include/modules/bs_badwords.h index ef773269f..86840600d 100644 --- a/include/modules/bs_badwords.h +++ b/include/modules/bs_badwords.h @@ -33,7 +33,7 @@ struct BadWord BadWordType type; virtual ~BadWord() = default; - protected: +protected: BadWord() = default; }; diff --git a/include/modules/bs_kick.h b/include/modules/bs_kick.h index c296e9221..6d0f4e085 100644 --- a/include/modules/bs_kick.h +++ b/include/modules/bs_kick.h @@ -37,10 +37,10 @@ struct KickerData bool dontkickops, dontkickvoices; - protected: +protected: KickerData() = default; - public: +public: virtual ~KickerData() = default; virtual void Check(ChannelInfo *ci) = 0; }; diff --git a/include/modules/cs_entrymsg.h b/include/modules/cs_entrymsg.h index e3586d5e9..a99ce6dd9 100644 --- a/include/modules/cs_entrymsg.h +++ b/include/modules/cs_entrymsg.h @@ -16,16 +16,16 @@ struct EntryMsg time_t when; virtual ~EntryMsg() = default; - protected: +protected: EntryMsg() = default; }; struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> > { - protected: +protected: EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { } - public: +public: virtual ~EntryMessageList() { for (unsigned i = (*this)->size(); i > 0; --i) diff --git a/include/modules/cs_log.h b/include/modules/cs_log.h index e283beabb..d88bd30c6 100644 --- a/include/modules/cs_log.h +++ b/include/modules/cs_log.h @@ -25,7 +25,7 @@ struct LogSetting time_t created; virtual ~LogSetting() = default; - protected: +protected: LogSetting() = default; }; @@ -33,12 +33,12 @@ struct LogSettings : Serialize::Checker<std::vector<LogSetting *> > { typedef std::vector<LogSetting *>::iterator iterator; - protected: +protected: LogSettings() : Serialize::Checker<std::vector<LogSetting *> >("LogSetting") { } - public: +public: virtual ~LogSettings() = default; virtual LogSetting *Create() = 0; }; diff --git a/include/modules/cs_mode.h b/include/modules/cs_mode.h index e62042d04..a4fed83f5 100644 --- a/include/modules/cs_mode.h +++ b/include/modules/cs_mode.h @@ -21,7 +21,7 @@ struct ModeLock time_t created; virtual ~ModeLock() = default; - protected: +protected: ModeLock() = default; }; diff --git a/include/modules/dns.h b/include/modules/dns.h index 1c5941588..4d733d3fc 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -115,7 +115,7 @@ namespace DNS */ class Manager : public Service { - public: + public: Manager(Module *creator) : Service(creator, "DNS::Manager", "dns/manager") { } virtual ~Manager() = default; @@ -134,7 +134,7 @@ namespace DNS class Request : public Timer, public Question { Manager *manager; - public: + public: /* Use result cache if available */ bool use_cache; /* Request id */ diff --git a/include/modules/encryption.h b/include/modules/encryption.h index 70bf6fb08..1475e8ab4 100644 --- a/include/modules/encryption.h +++ b/include/modules/encryption.h @@ -18,7 +18,7 @@ namespace Encryption class Context { - public: + public: virtual ~Context() = default; virtual void Update(const unsigned char *data, size_t len) = 0; virtual void Finalize() = 0; @@ -27,7 +27,7 @@ namespace Encryption class Provider : public Service { - public: + public: Provider(Module *creator, const Anope::string &sname) : Service(creator, "Encryption::Provider", sname) { } virtual ~Provider() = default; diff --git a/include/modules/httpd.h b/include/modules/httpd.h index 207499d3b..b84cb728f 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -98,7 +98,7 @@ class HTTPPage : public virtual Base Anope::string url; Anope::string content_type; - public: +public: HTTPPage(const Anope::string &u, const Anope::string &ct = "text/html") : url(u), content_type(ct) { } const Anope::string &GetURL() const { return this->url; } @@ -117,13 +117,13 @@ class HTTPPage : public virtual Base class HTTPClient : public ClientSocket, public BinarySocket, public Base { - protected: +protected: void WriteClient(const Anope::string &message) { BinarySocket::Write(message + "\r\n"); } - public: +public: HTTPClient(ListenSocket *l, int f, const sockaddrs &a) : ClientSocket(l, a), BinarySocket() { } virtual const Anope::string GetIP() @@ -140,7 +140,7 @@ class HTTPProvider : public ListenSocket, public Service Anope::string ip; unsigned short port; bool ssl; - public: +public: std::vector<Anope::string> ext_ips; std::vector<Anope::string> ext_headers; diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 34f73f65b..3769b0ccb 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -10,7 +10,7 @@ class LDAPException : public ModuleException { - public: +public: LDAPException(const Anope::string &reason) : ModuleException(reason) { } virtual ~LDAPException() noexcept = default; @@ -111,7 +111,7 @@ struct LDAPResult class LDAPInterface { - public: +public: Module *owner; LDAPInterface(Module *m) : owner(m) { } @@ -124,7 +124,7 @@ class LDAPInterface class LDAPProvider : public Service { - public: +public: LDAPProvider(Module *c, const Anope::string &n) : Service(c, "LDAPProvider", n) { } /** Attempt to bind to the LDAP server as an admin diff --git a/include/modules/ns_cert.h b/include/modules/ns_cert.h index 824964ba8..b22d22a7c 100644 --- a/include/modules/ns_cert.h +++ b/include/modules/ns_cert.h @@ -13,9 +13,9 @@ struct NSCertList { - protected: +protected: NSCertList() = default; - public: +public: virtual ~NSCertList() = default; /** Add an entry to the nick's certificate list @@ -65,7 +65,7 @@ struct NSCertList class CertService : public Service { - public: +public: CertService(Module *c) : Service(c, "CertService", "certs") { } virtual NickCore* FindAccountFromCert(const Anope::string &cert) = 0; diff --git a/include/modules/os_forbid.h b/include/modules/os_forbid.h index 35dfc5c7f..354e54453 100644 --- a/include/modules/os_forbid.h +++ b/include/modules/os_forbid.h @@ -27,13 +27,13 @@ struct ForbidData ForbidType type; virtual ~ForbidData() = default; - protected: +protected: ForbidData() = default; }; class ForbidService : public Service { - public: +public: ForbidService(Module *m) : Service(m, "ForbidService", "forbid") { } virtual void AddForbid(ForbidData *d) = 0; diff --git a/include/modules/os_ignore.h b/include/modules/os_ignore.h index 14b71f9ac..fdc89ff7b 100644 --- a/include/modules/os_ignore.h +++ b/include/modules/os_ignore.h @@ -19,16 +19,16 @@ struct IgnoreData time_t time = 0; /* When do we stop ignoring them? */ virtual ~IgnoreData() = default; - protected: +protected: IgnoreData() = default; }; class IgnoreService : public Service { - protected: +protected: IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { } - public: +public: virtual void AddIgnore(IgnoreData *) = 0; virtual void DelIgnore(IgnoreData *) = 0; diff --git a/include/modules/os_news.h b/include/modules/os_news.h index 10228e82a..9add8b210 100644 --- a/include/modules/os_news.h +++ b/include/modules/os_news.h @@ -34,7 +34,7 @@ struct NewsItem : Serializable class NewsService : public Service { - public: +public: NewsService(Module *m) : Service(m, "NewsService", "news") { } virtual NewsItem *CreateNewsItem() = 0; diff --git a/include/modules/os_session.h b/include/modules/os_session.h index eb8c2aaca..48799e574 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.h @@ -33,7 +33,7 @@ struct Exception : Serializable class SessionService : public Service { - public: +public: typedef std::unordered_map<cidr, Session *, cidr::hash> SessionMap; typedef std::vector<Exception *> ExceptionVector; diff --git a/include/modules/pseudoclients/chanserv.h b/include/modules/pseudoclients/chanserv.h index 013596ed9..0cc327155 100644 --- a/include/modules/pseudoclients/chanserv.h +++ b/include/modules/pseudoclients/chanserv.h @@ -10,7 +10,7 @@ class ChanServService : public Service { - public: +public: ChanServService(Module *m) : Service(m, "ChanServService", "ChanServ") { } diff --git a/include/modules/pseudoclients/global.h b/include/modules/pseudoclients/global.h index b27ad3562..f88218769 100644 --- a/include/modules/pseudoclients/global.h +++ b/include/modules/pseudoclients/global.h @@ -10,7 +10,7 @@ class GlobalService : public Service { - public: +public: GlobalService(Module *m) : Service(m, "GlobalService", "Global") { } diff --git a/include/modules/pseudoclients/memoserv.h b/include/modules/pseudoclients/memoserv.h index ea3fc964e..e5119d54a 100644 --- a/include/modules/pseudoclients/memoserv.h +++ b/include/modules/pseudoclients/memoserv.h @@ -10,7 +10,7 @@ class MemoServService : public Service { - public: +public: enum MemoResult { MEMO_SUCCESS, diff --git a/include/modules/pseudoclients/nickserv.h b/include/modules/pseudoclients/nickserv.h index 5207d7021..e037db167 100644 --- a/include/modules/pseudoclients/nickserv.h +++ b/include/modules/pseudoclients/nickserv.h @@ -10,7 +10,7 @@ class NickServService : public Service { - public: +public: NickServService(Module *m) : Service(m, "NickServService", "NickServ") { } diff --git a/include/modules/redis.h b/include/modules/redis.h index f30311f34..517d12701 100644 --- a/include/modules/redis.h +++ b/include/modules/redis.h @@ -45,7 +45,7 @@ namespace Redis class Interface { - public: + public: Module *owner; Interface(Module *m) : owner(m) { } @@ -57,7 +57,7 @@ namespace Redis class Provider : public Service { - public: + public: Provider(Module *c, const Anope::string &n) : Service(c, "Redis::Provider", n) { } virtual bool IsSocketDead() = 0; diff --git a/include/modules/sasl.h b/include/modules/sasl.h index f5482d31b..b8d3c07cb 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -24,7 +24,7 @@ namespace SASL class Service : public ::Service { - public: + public: Service(Module *o) : ::Service(o, "SASL::Service", "sasl") { } virtual void ProcessMessage(const Message &) = 0; @@ -62,7 +62,7 @@ namespace SASL /* PLAIN, EXTERNAL, etc */ class Mechanism : public ::Service { - public: + public: Mechanism(Module *o, const Anope::string &sname) : Service(o, "SASL::Mechanism", sname) { } virtual Session* CreateSession(const Anope::string &uid) { return new Session(this, uid); } @@ -81,7 +81,7 @@ namespace SASL Anope::string uid; Anope::string hostname, ip; - public: + public: IdentifyRequest(Module *m, const Anope::string &id, const Anope::string &acc, const Anope::string &pass, const Anope::string &h, const Anope::string &i) : ::IdentifyRequest(m, acc, pass), uid(id), hostname(h), ip(i) { } void OnSuccess() override diff --git a/include/modules/set_misc.h b/include/modules/set_misc.h index 892972d6d..43a06237d 100644 --- a/include/modules/set_misc.h +++ b/include/modules/set_misc.h @@ -15,6 +15,6 @@ struct MiscData Anope::string data; virtual ~MiscData() = default; - protected: +protected: MiscData() = default; }; diff --git a/include/modules/sql.h b/include/modules/sql.h index 607f8bcd9..ec21c7b9f 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -13,7 +13,7 @@ namespace SQL class Data : public Serialize::Data { - public: + public: typedef std::map<Anope::string, std::stringstream *> Map; Map data; std::map<Anope::string, Type> types; @@ -83,7 +83,7 @@ namespace SQL */ class Exception : public ModuleException { - public: + public: Exception(const Anope::string &reason) : ModuleException(reason) { } virtual ~Exception() noexcept = default; @@ -139,12 +139,12 @@ namespace SQL */ class Result { - protected: + protected: /* Rows, column, item */ std::vector<std::map<Anope::string, Anope::string> > entries; Query query; Anope::string error; - public: + public: unsigned int id = 0; Anope::string finished_query; @@ -187,7 +187,7 @@ namespace SQL */ class Interface { - public: + public: Module *owner; Interface(Module *m) : owner(m) { } @@ -201,7 +201,7 @@ namespace SQL */ class Provider : public Service { - public: + public: Provider(Module *c, const Anope::string &n) : Service(c, "SQL::Provider", n) { } virtual void Run(Interface *i, const Query &query) = 0; diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 4d1fa63e4..ba391178a 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -10,7 +10,7 @@ class SSLService : public Service { - public: +public: SSLService(Module *o, const Anope::string &n) : Service(o, "SSLService", n) { } virtual void Init(Socket *s) = 0; diff --git a/include/modules/xmlrpc.h b/include/modules/xmlrpc.h index 81d8b3f7e..92ac1fb7e 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -14,7 +14,7 @@ class XMLRPCRequest { std::map<Anope::string, Anope::string> replies; - public: +public: Anope::string name; Anope::string id; std::deque<Anope::string> data; @@ -29,14 +29,14 @@ class XMLRPCServiceInterface; class XMLRPCEvent { - public: +public: virtual ~XMLRPCEvent() = default; virtual bool Run(XMLRPCServiceInterface *iface, HTTPClient *client, XMLRPCRequest &request) = 0; }; class XMLRPCServiceInterface : public Service { - public: +public: XMLRPCServiceInterface(Module *creator, const Anope::string &sname) : Service(creator, "XMLRPCServiceInterface", sname) { } virtual void Register(XMLRPCEvent *event) = 0; |
