summaryrefslogtreecommitdiff
path: root/modules/protocol
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 /modules/protocol
parenta4ab6876c3f4afc087a3db90404bbdeb47525e6e (diff)
Fix a bunch of broken indentation.
Diffstat (limited to 'modules/protocol')
-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
6 files changed, 118 insertions, 118 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp
index 57c4e2a5a..330135ecb 100644
--- a/modules/protocol/inspircd12.cpp
+++ b/modules/protocol/inspircd12.cpp
@@ -426,7 +426,7 @@ class InspIRCd12Proto : public IRCDProto
void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) anope_override
{
UplinkSocket::Message(Me) << "METADATA " << uid << " accountname :" << acc;
-
+
if (!vident.empty())
UplinkSocket::Message(Me) << "ENCAP " << uid.substr(0, 3) << " CHGIDENT " << uid << " " << vident;
if (!vhost.empty())
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp
index 7cf4bf255..1b6adda61 100644
--- a/modules/protocol/inspircd20.cpp
+++ b/modules/protocol/inspircd20.cpp
@@ -184,9 +184,9 @@ namespace InspIRCdExtban
class AccountMatcher : public InspIRCdExtBan
{
public:
- AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
+ AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
bool Matches(User *u, const Entry *e) anope_override
{
@@ -200,46 +200,46 @@ namespace InspIRCdExtban
class RealnameMatcher : public InspIRCdExtBan
{
public:
- RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return Anope::Match(u->realname, real_mask);
- }
+ RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return Anope::Match(u->realname, real_mask);
+ }
};
class ServerMatcher : public InspIRCdExtBan
{
public:
- ServerMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return Anope::Match(u->server->GetName(), real_mask);
- }
+ ServerMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return Anope::Match(u->server->GetName(), real_mask);
+ }
};
class FingerprintMatcher : public InspIRCdExtBan
{
public:
- FingerprintMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return !u->fingerprint.empty() && Anope::Match(u->fingerprint, real_mask);
- }
+ FingerprintMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return !u->fingerprint.empty() && Anope::Match(u->fingerprint, real_mask);
+ }
};
class UnidentifiedMatcher : public InspIRCdExtBan
@@ -251,8 +251,8 @@ namespace InspIRCdExtban
bool Matches(User *u, const Entry *e) anope_override
{
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
return !u->Account() && Entry("BAN", real_mask).Matches(u);
}
};
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp
index 0899f44eb..c26f0a56a 100644
--- a/modules/protocol/inspircd3.cpp
+++ b/modules/protocol/inspircd3.cpp
@@ -575,9 +575,9 @@ namespace InspIRCdExtban
class AccountMatcher : public InspIRCdExtBan
{
public:
- AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
+ AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
bool Matches(User *u, const Entry *e) anope_override
{
@@ -591,46 +591,46 @@ namespace InspIRCdExtban
class RealnameMatcher : public InspIRCdExtBan
{
public:
- RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return Anope::Match(u->realname, real_mask);
- }
+ RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return Anope::Match(u->realname, real_mask);
+ }
};
class ServerMatcher : public InspIRCdExtBan
{
public:
- ServerMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return Anope::Match(u->server->GetName(), real_mask);
- }
+ ServerMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return Anope::Match(u->server->GetName(), real_mask);
+ }
};
class FingerprintMatcher : public InspIRCdExtBan
{
public:
- FingerprintMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
- {
- }
-
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
- return !u->fingerprint.empty() && Anope::Match(u->fingerprint, real_mask);
- }
+ FingerprintMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : InspIRCdExtBan(mname, mbase, c)
+ {
+ }
+
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
+ return !u->fingerprint.empty() && Anope::Match(u->fingerprint, real_mask);
+ }
};
class UnidentifiedMatcher : public InspIRCdExtBan
@@ -642,8 +642,8 @@ namespace InspIRCdExtban
bool Matches(User *u, const Entry *e) anope_override
{
- const Anope::string &mask = e->GetMask();
- Anope::string real_mask = mask.substr(2);
+ const Anope::string &mask = e->GetMask();
+ Anope::string real_mask = mask.substr(2);
return !u->Account() && Entry("BAN", real_mask).Matches(u);
}
};
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index 0c9516973..89aaf0daf 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -116,7 +116,7 @@ class ngIRCdProto : public IRCDProto
void SendLogout(User *u) anope_override
{
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :";
- }
+ }
/* SERVER name hop descript */
void SendServer(const Server *server) anope_override
@@ -509,8 +509,8 @@ struct IRCDMessageServer : IRCDMessage
* New directly linked server:
*
* SERVER tolsun.oulu.fi 1 :Experimental server
- * New server tolsun.oulu.fi introducing itself
- * and attempting to register.
+ * New server tolsun.oulu.fi introducing itself
+ * and attempting to register.
*
* params[0] = servername
* params[1] = hop count
@@ -519,10 +519,10 @@ struct IRCDMessageServer : IRCDMessage
* New remote server in the network:
*
* :tolsun.oulu.fi SERVER csd.bu.edu 5 34 :BU Central Server
- * Server tolsun.oulu.fi is our uplink for csd.bu.edu
- * which is 5 hops away. The token "34" will be used
- * by tolsun.oulu.fi when introducing new users or
- * services connected to csd.bu.edu.
+ * Server tolsun.oulu.fi is our uplink for csd.bu.edu
+ * which is 5 hops away. The token "34" will be used
+ * by tolsun.oulu.fi when introducing new users or
+ * services connected to csd.bu.edu.
*
* params[0] = servername
* params[1] = hop count
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 706cf7d0f..99c382e78 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -482,11 +482,11 @@ namespace UnrealExtban
class EntryMatcher : public UnrealExtBan
{
public:
- EntryMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ EntryMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
@@ -498,11 +498,11 @@ namespace UnrealExtban
class RealnameMatcher : public UnrealExtBan
{
public:
- RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
@@ -514,11 +514,11 @@ namespace UnrealExtban
class RegisteredMatcher : public UnrealExtBan
{
public:
- RegisteredMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ RegisteredMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
return u->HasMode("REGISTERED") && mask.equals_ci(u->nick);
@@ -528,17 +528,17 @@ namespace UnrealExtban
class AccountMatcher : public UnrealExtBan
{
public:
- AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
- return u->Account() && Anope::Match(u->Account()->display, real_mask);
- }
+ return u->Account() && Anope::Match(u->Account()->display, real_mask);
+ }
};
}
diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp
index f48981739..9089857ac 100644
--- a/modules/protocol/unreal4.cpp
+++ b/modules/protocol/unreal4.cpp
@@ -497,11 +497,11 @@ namespace UnrealExtban
class EntryMatcher : public UnrealExtBan
{
public:
- EntryMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ EntryMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
@@ -513,11 +513,11 @@ namespace UnrealExtban
class RealnameMatcher : public UnrealExtBan
{
public:
- RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ RealnameMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
@@ -529,11 +529,11 @@ namespace UnrealExtban
class RegisteredMatcher : public UnrealExtBan
{
public:
- RegisteredMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ RegisteredMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->GetMask();
return u->HasMode("REGISTERED") && mask.equals_ci(u->nick);
@@ -543,17 +543,17 @@ namespace UnrealExtban
class AccountMatcher : public UnrealExtBan
{
public:
- AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
- {
- }
+ AccountMatcher(const Anope::string &mname, const Anope::string &mbase, char c) : UnrealExtBan(mname, mbase, c)
+ {
+ }
- bool Matches(User *u, const Entry *e) anope_override
- {
- const Anope::string &mask = e->GetMask();
+ bool Matches(User *u, const Entry *e) anope_override
+ {
+ const Anope::string &mask = e->GetMask();
Anope::string real_mask = mask.substr(3);
- return u->Account() && Anope::Match(u->Account()->display, real_mask);
- }
+ return u->Account() && Anope::Match(u->Account()->display, real_mask);
+ }
};
class FingerprintMatcher : public UnrealExtBan