summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-12-14 18:37:23 +0000
committerPeter Powell <petpow@saberuk.com>2019-12-14 18:38:13 +0000
commit6617d29b5227f962c348e638a373ebb78989b7ba (patch)
treee2d6da92be797d519cbd8e154d1ba97a8c656884
parenta4ab6876c3f4afc087a3db90404bbdeb47525e6e (diff)
Fix a bunch of broken indentation.
-rw-r--r--include/access.h4
-rw-r--r--include/account.h8
-rw-r--r--include/base.h2
-rw-r--r--include/channels.h4
-rw-r--r--include/commands.h6
-rw-r--r--include/config.h2
-rw-r--r--include/extensible.h4
-rw-r--r--include/lists.h2
-rw-r--r--include/logger.h4
-rw-r--r--include/mail.h4
-rw-r--r--include/memo.h4
-rw-r--r--include/messages.h2
-rw-r--r--include/modes.h14
-rw-r--r--include/modules.h2
-rw-r--r--include/modules/cs_log.h2
-rw-r--r--include/modules/cs_mode.h2
-rw-r--r--include/modules/dns.h4
-rw-r--r--include/modules/encryption.h2
-rw-r--r--include/modules/httpd.h4
-rw-r--r--include/modules/os_session.h2
-rw-r--r--include/modules/sql.h4
-rw-r--r--include/modules/xmlrpc.h2
-rw-r--r--include/opertype.h2
-rw-r--r--include/protocol.h2
-rw-r--r--include/regchannel.h6
-rw-r--r--include/regexpr.h2
-rw-r--r--include/serialize.h12
-rw-r--r--include/servers.h4
-rw-r--r--include/service.h4
-rw-r--r--include/sockets.h22
-rw-r--r--include/timers.h2
-rw-r--r--include/uplink.h6
-rw-r--r--include/users.h2
-rw-r--r--modules/commands/bs_assign.cpp2
-rw-r--r--modules/commands/bs_kick.cpp4
-rw-r--r--modules/commands/bs_set.cpp2
-rw-r--r--modules/commands/cs_access.cpp2
-rw-r--r--modules/commands/cs_ban.cpp2
-rw-r--r--modules/commands/cs_flags.cpp2
-rw-r--r--modules/commands/cs_log.cpp2
-rw-r--r--modules/commands/cs_mode.cpp2
-rw-r--r--modules/commands/cs_xop.cpp4
-rw-r--r--modules/commands/ns_ajoin.cpp2
-rw-r--r--modules/commands/ns_cert.cpp2
-rw-r--r--modules/commands/os_dns.cpp4
-rw-r--r--modules/commands/os_info.cpp6
-rw-r--r--modules/commands/os_login.cpp4
-rw-r--r--modules/commands/os_sxline.cpp6
-rw-r--r--modules/database/db_flatfile.cpp4
-rw-r--r--modules/database/db_old.cpp4
-rw-r--r--modules/encryption/enc_md5.cpp2
-rw-r--r--modules/encryption/enc_old.cpp2
-rw-r--r--modules/encryption/enc_sha1.cpp2
-rw-r--r--modules/encryption/enc_sha256.cpp2
-rw-r--r--modules/extra/m_ssl_gnutls.cpp4
-rw-r--r--modules/extra/m_ssl_openssl.cpp4
-rw-r--r--modules/m_dns.cpp4
-rw-r--r--modules/m_proxyscan.cpp6
-rw-r--r--modules/protocol/inspircd12.cpp2
-rw-r--r--modules/protocol/inspircd20.cpp70
-rw-r--r--modules/protocol/inspircd3.cpp70
-rw-r--r--modules/protocol/ngircd.cpp14
-rw-r--r--modules/protocol/unreal.cpp40
-rw-r--r--modules/protocol/unreal4.cpp40
-rw-r--r--modules/pseudoclients/chanserv.cpp2
-rw-r--r--modules/webcpanel/pages/chanserv/access.h2
-rw-r--r--modules/webcpanel/pages/chanserv/akick.h2
-rw-r--r--modules/webcpanel/pages/chanserv/info.h2
-rw-r--r--modules/webcpanel/pages/chanserv/set.h2
-rw-r--r--modules/webcpanel/pages/hostserv/request.h2
-rw-r--r--modules/webcpanel/pages/logout.h2
-rw-r--r--modules/webcpanel/pages/memoserv/memos.h2
-rw-r--r--modules/webcpanel/pages/nickserv/access.h2
-rw-r--r--modules/webcpanel/pages/nickserv/alist.h2
-rw-r--r--modules/webcpanel/pages/nickserv/cert.h2
-rw-r--r--modules/webcpanel/pages/nickserv/info.h2
-rw-r--r--src/protocol.cpp2
-rw-r--r--src/users.cpp4
78 files changed, 247 insertions, 247 deletions
diff --git a/include/access.h b/include/access.h
index 4df23ebd8..41958fc66 100644
--- a/include/access.h
+++ b/include/access.h
@@ -80,7 +80,7 @@ class CoreExport ChanAccess : public Serializable
public:
typedef std::vector<ChanAccess *> Path;
- /* The provider that created this access entry */
+ /* The provider that created this access entry */
AccessProvider *provider;
/* Channel this access entry is on */
Serialize::Reference<ChannelInfo> ci;
@@ -139,7 +139,7 @@ class CoreExport AccessGroup
/* access entries + paths */
std::vector<ChanAccess::Path> paths;
/* Channel these access entries are on */
- const ChannelInfo *ci;
+ const ChannelInfo *ci;
/* Account these entries affect, if any */
const NickCore *nc;
/* super_admin always gets all privs. founder is a special case where ci->founder == nc */
diff --git a/include/account.h b/include/account.h
index 58dad381e..ad6e8ebac 100644
--- a/include/account.h
+++ b/include/account.h
@@ -45,7 +45,7 @@ class CoreExport NickAlias : public Serializable, public Extensible
/* Account this nick is tied to. Multiple nicks can be tied to a single account. */
Serialize::Reference<NickCore> nc;
- /** Constructor
+ /** Constructor
* @param nickname The nick
* @param nickcore The nickcore for this nick
*/
@@ -55,7 +55,7 @@ class CoreExport NickAlias : public Serializable, public Extensible
void Serialize(Serialize::Data &data) const anope_override;
static Serializable* Unserialize(Serializable *obj, Serialize::Data &);
- /** Set a vhost for the user
+ /** Set a vhost for the user
* @param ident The ident
* @param host The host
* @param creator Who created the vhost
@@ -108,7 +108,7 @@ class CoreExport NickCore : public Serializable, public Extensible
/* Channels which reference this core in some way (this is on their access list, akick list, is founder, successor, etc) */
Serialize::Checker<std::map<ChannelInfo *, int> > chanaccess;
public:
- /* Name of the account. Find(display)->nc == this. */
+ /* Name of the account. Find(display)->nc == this. */
Anope::string display;
/* User password in form of hashm:data */
Anope::string pass;
@@ -242,7 +242,7 @@ class CoreExport IdentifyRequest
virtual ~IdentifyRequest();
public:
- /* One of these is called when the request goes through */
+ /* One of these is called when the request goes through */
virtual void OnSuccess() = 0;
virtual void OnFail() = 0;
diff --git a/include/base.h b/include/base.h
index 28e41a690..0c1021b9d 100644
--- a/include/base.h
+++ b/include/base.h
@@ -50,7 +50,7 @@ class Reference : public ReferenceBase
protected:
T *ref;
public:
- Reference() : ref(NULL)
+ Reference() : ref(NULL)
{
}
diff --git a/include/channels.h b/include/channels.h
index 48974065f..7e89fcff0 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -41,7 +41,7 @@ class CoreExport Channel : public Base, public Extensible
ModeList modes;
public:
- /* Channel name */
+ /* Channel name */
Anope::string name;
/* Set if this channel is registered. ci->c == this. Contains information relevant to the registered channel */
Serialize::Reference<ChannelInfo> ci;
@@ -139,7 +139,7 @@ class CoreExport Channel : public Base, public Extensible
/** See if a channel has a mode
* @param name The mode name
* @return The number of modes set
- * @param param The optional mode param
+ * @param param The optional mode param
*/
size_t HasMode(const Anope::string &name, const Anope::string &param = "");
diff --git a/include/commands.h b/include/commands.h
index 871524fb1..bd9cd0230 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -101,7 +101,7 @@ class CoreExport Command : public Service
bool require_user;
public:
- /* Maximum paramaters accepted by this command */
+ /* Maximum paramaters accepted by this command */
size_t max_params;
/* Minimum parameters required to use this command */
size_t min_params;
@@ -136,11 +136,11 @@ class CoreExport Command : public Service
bool AllowUnregistered() const;
bool RequireUser() const;
- /** Get the command description
+ /** Get the command description
* @param source The source wanting the command description
* @return The commands description
*/
- virtual const Anope::string GetDesc(CommandSource &source) const;
+ virtual const Anope::string GetDesc(CommandSource &source) const;
/** Execute this command.
* @param source The source
diff --git a/include/config.h b/include/config.h
index 5d79136db..30d9255b8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -35,7 +35,7 @@ namespace Configuration
int linenum;
public:
- Block(const Anope::string &);
+ Block(const Anope::string &);
const Anope::string &GetName() const;
int CountBlock(const Anope::string &name);
Block* GetBlock(const Anope::string &name, int num = 0);
diff --git a/include/extensible.h b/include/extensible.h
index d57799737..abb4af13b 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -164,7 +164,7 @@ template<typename T>
class SerializableExtensibleItem : public PrimitiveExtensibleItem<T>
{
public:
- SerializableExtensibleItem(Module *m, const Anope::string &n) : PrimitiveExtensibleItem<T>(m, n) { }
+ SerializableExtensibleItem(Module *m, const Anope::string &n) : PrimitiveExtensibleItem<T>(m, n) { }
void ExtensibleSerialize(const Extensible *e, const Serializable *s, Serialize::Data &data) const anope_override
{
@@ -186,7 +186,7 @@ template<>
class SerializableExtensibleItem<bool> : public PrimitiveExtensibleItem<bool>
{
public:
- SerializableExtensibleItem(Module *m, const Anope::string &n) : PrimitiveExtensibleItem<bool>(m, n) { }
+ SerializableExtensibleItem(Module *m, const Anope::string &n) : PrimitiveExtensibleItem<bool>(m, n) { }
void ExtensibleSerialize(const Extensible *e, const Serializable *s, Serialize::Data &data) const anope_override
{
diff --git a/include/lists.h b/include/lists.h
index 3c728aa10..c0a9604f1 100644
--- a/include/lists.h
+++ b/include/lists.h
@@ -64,7 +64,7 @@ class CoreExport NumberList
class CoreExport ListFormatter
{
public:
- typedef std::map<Anope::string, Anope::string> ListEntry;
+ typedef std::map<Anope::string, Anope::string> ListEntry;
private:
NickCore *nc;
std::vector<Anope::string> columns;
diff --git a/include/logger.h b/include/logger.h
index fed6c51dd..85718cf32 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -52,7 +52,7 @@ struct LogFile
class CoreExport Log
{
public:
- /* Bot that should log this message */
+ /* Bot that should log this message */
BotInfo *bi;
/* For commands, the user executing the command, but might not always exist */
User *u;
@@ -113,7 +113,7 @@ class CoreExport Log
class CoreExport LogInfo
{
public:
- BotInfo *bot;
+ BotInfo *bot;
std::vector<Anope::string> targets;
std::vector<LogFile *> logfiles;
int last_day;
diff --git a/include/mail.h b/include/mail.h
index 2c0d3e2a4..030e50efb 100644
--- a/include/mail.h
+++ b/include/mail.h
@@ -26,7 +26,7 @@ namespace Mail
class Message : public Thread
{
private:
- Anope::string sendmail_path;
+ Anope::string sendmail_path;
Anope::string send_from;
Anope::string mail_to;
Anope::string addr;
@@ -36,7 +36,7 @@ namespace Mail
bool success;
public:
- /** Construct this message. Once constructed call Thread::Start to launch the mail sending.
+ /** Construct this message. Once constructed call Thread::Start to launch the mail sending.
* @param sf Config->SendFrom
* @param mailto Name of person being mailed (u->nick, nc->display, etc)
* @param addr Destination address to mail
diff --git a/include/memo.h b/include/memo.h
index 6544efcc3..6be934bb8 100644
--- a/include/memo.h
+++ b/include/memo.h
@@ -19,9 +19,9 @@ class CoreExport Memo : public Serializable
{
public:
MemoInfo *mi;
- bool unread;
+ bool unread;
bool receipt;
- Memo();
+ Memo();
~Memo();
void Serialize(Serialize::Data &data) const anope_override;
diff --git a/include/messages.h b/include/messages.h
index 6d683408f..53d1200f3 100644
--- a/include/messages.h
+++ b/include/messages.h
@@ -165,7 +165,7 @@ namespace Message
struct CoreExport Whois : IRCDMessage
{
- Whois(Module *creator, const Anope::string &mname = "WHOIS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
+ Whois(Module *creator, const Anope::string &mname = "WHOIS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override;
};
diff --git a/include/modes.h b/include/modes.h
index bd7966864..d3134d4f0 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -39,8 +39,8 @@ enum ModeClass
class CoreExport Mode : public Base
{
public:
- /* Mode name */
- Anope::string name;
+ /* Mode name */
+ Anope::string name;
/* Class of mode this is (user/channel) */
ModeClass mclass;
/* Mode char for this, eg 'b' */
@@ -78,7 +78,7 @@ class CoreExport UserMode : public Mode
class CoreExport UserModeParam : public UserMode
{
public:
- /** constructor
+ /** constructor
* @param name The mode name
* @param mc The mode char
*/
@@ -229,9 +229,9 @@ class CoreExport ChannelStatus
{
Anope::string modes;
public:
- ChannelStatus();
- ChannelStatus(const Anope::string &modes);
- void AddMode(char c);
+ ChannelStatus();
+ ChannelStatus(const Anope::string &modes);
+ void AddMode(char c);
void DelMode(char c);
bool HasMode(char c) const;
bool Empty() const;
@@ -399,7 +399,7 @@ class CoreExport Entry
Anope::string nick, user, host, real;
/** Constructor
- * @param mode What mode this host is for, can be empty for unknown/no mode
+ * @param mode What mode this host is for, can be empty for unknown/no mode
* @param host A full or poartial nick!ident@host/cidr#real name mask
*/
Entry(const Anope::string &mode, const Anope::string &host);
diff --git a/include/modules.h b/include/modules.h
index abf1808c6..05eb60230 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1138,7 +1138,7 @@ class CoreExport ModuleManager
*/
static std::vector<Module *> EventHandlers[I_SIZE];
- /** List of all modules loaded in Anope
+ /** List of all modules loaded in Anope
*/
static std::list<Module *> Modules;
diff --git a/include/modules/cs_log.h b/include/modules/cs_log.h
index 1a5658dd1..ca2a6bcaa 100644
--- a/include/modules/cs_log.h
+++ b/include/modules/cs_log.h
@@ -37,6 +37,6 @@ struct LogSettings : Serialize::Checker<std::vector<LogSetting *> >
}
public:
- virtual ~LogSettings() { }
+ virtual ~LogSettings() { }
virtual LogSetting *Create() = 0;
};
diff --git a/include/modules/cs_mode.h b/include/modules/cs_mode.h
index 480217e59..4ac2e1450 100644
--- a/include/modules/cs_mode.h
+++ b/include/modules/cs_mode.h
@@ -74,7 +74,7 @@ struct ModeLocks
/** Get details for a specific mlock
* @param mname The mode name
- * @param An optional param to match with
+ * @param An optional param to match with
* @return The MLock, if any
*/
virtual const ModeLock *GetMLock(const Anope::string &mname, const Anope::string &param = "") = 0;
diff --git a/include/modules/dns.h b/include/modules/dns.h
index c9c6c9088..c35144210 100644
--- a/include/modules/dns.h
+++ b/include/modules/dns.h
@@ -139,8 +139,8 @@ namespace DNS
/* Use result cache if available */
bool use_cache;
/* Request id */
- unsigned short id;
- /* Creator of this request */
+ unsigned short id;
+ /* Creator of this request */
Module *creator;
Request(Manager *mgr, Module *c, const Anope::string &addr, QueryType qt, bool cache = false) : Timer(0), Question(addr, qt), manager(mgr),
diff --git a/include/modules/encryption.h b/include/modules/encryption.h
index f72d95910..fccd77dc8 100644
--- a/include/modules/encryption.h
+++ b/include/modules/encryption.h
@@ -17,7 +17,7 @@ namespace Encryption
class Context
{
public:
- virtual ~Context() { }
+ virtual ~Context() { }
virtual void Update(const unsigned char *data, size_t len) = 0;
virtual void Finalize() = 0;
virtual Hash GetFinalizedHash() = 0;
diff --git a/include/modules/httpd.h b/include/modules/httpd.h
index 0e9b1196e..338254c1f 100644
--- a/include/modules/httpd.h
+++ b/include/modules/httpd.h
@@ -99,7 +99,7 @@ class HTTPPage : public Base
Anope::string content_type;
public:
- HTTPPage(const Anope::string &u, const Anope::string &ct = "text/html") : url(u), content_type(ct) { }
+ HTTPPage(const Anope::string &u, const Anope::string &ct = "text/html") : url(u), content_type(ct) { }
const Anope::string &GetURL() const { return this->url; }
@@ -137,7 +137,7 @@ class HTTPClient : public ClientSocket, public BinarySocket, public Base
class HTTPProvider : public ListenSocket, public Service
{
- Anope::string ip;
+ Anope::string ip;
unsigned short port;
bool ssl;
public:
diff --git a/include/modules/os_session.h b/include/modules/os_session.h
index 0c064f895..034937412 100644
--- a/include/modules/os_session.h
+++ b/include/modules/os_session.h
@@ -35,7 +35,7 @@ struct Exception : Serializable
class SessionService : public Service
{
public:
- typedef TR1NS::unordered_map<cidr, Session *, cidr::hash> SessionMap;
+ typedef TR1NS::unordered_map<cidr, Session *, cidr::hash> SessionMap;
typedef std::vector<Exception *> ExceptionVector;
SessionService(Module *m) : Service(m, "SessionService", "session") { }
diff --git a/include/modules/sql.h b/include/modules/sql.h
index a70f25dc6..47b2a7aef 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -12,7 +12,7 @@ namespace SQL
class Data : public Serialize::Data
{
public:
- typedef std::map<Anope::string, std::stringstream *> Map;
+ typedef std::map<Anope::string, std::stringstream *> Map;
Map data;
std::map<Anope::string, Type> types;
@@ -142,7 +142,7 @@ namespace SQL
Anope::string error;
public:
unsigned int id;
- Anope::string finished_query;
+ Anope::string finished_query;
Result() : id(0) { }
Result(unsigned int i, const Query &q, co