summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/botserv/bs_badwords.cpp8
-rw-r--r--modules/botserv/bs_kick.cpp2
-rw-r--r--modules/chanserv/cs_access.cpp2
-rw-r--r--modules/chanserv/cs_entrymsg.cpp6
-rw-r--r--modules/chanserv/cs_flags.cpp2
-rw-r--r--modules/chanserv/cs_log.cpp2
-rw-r--r--modules/chanserv/cs_mode.cpp4
-rw-r--r--modules/chanserv/cs_seen.cpp6
-rw-r--r--modules/chanserv/cs_set_misc.cpp4
-rw-r--r--modules/chanserv/cs_suspend.cpp2
-rw-r--r--modules/database/db_flatfile.cpp4
-rw-r--r--modules/database/db_redis.cpp12
-rw-r--r--modules/encryption/enc_bcrypt.cpp4
-rw-r--r--modules/extra/ldap.cpp4
-rw-r--r--modules/extra/ssl_gnutls.cpp10
-rw-r--r--modules/hostserv/hs_request.cpp2
-rw-r--r--modules/httpd.cpp4
-rw-r--r--modules/nickserv/ns_ajoin.cpp2
-rw-r--r--modules/nickserv/ns_cert.cpp2
-rw-r--r--modules/nickserv/ns_group.cpp2
-rw-r--r--modules/nickserv/ns_set_misc.cpp4
-rw-r--r--modules/nickserv/ns_suspend.cpp2
-rw-r--r--modules/operserv/os_dns.cpp6
-rw-r--r--modules/operserv/os_forbid.cpp4
-rw-r--r--modules/operserv/os_ignore.cpp4
-rw-r--r--modules/operserv/os_news.cpp2
-rw-r--r--modules/operserv/os_oper.cpp2
-rw-r--r--modules/operserv/os_session.cpp4
-rw-r--r--modules/operserv/os_stats.cpp4
-rw-r--r--modules/operserv/os_sxline.cpp2
-rw-r--r--modules/protocol/bahamut.cpp2
-rw-r--r--modules/protocol/hybrid.cpp2
-rw-r--r--modules/protocol/inspircd.cpp4
-rw-r--r--modules/protocol/plexus.cpp2
-rw-r--r--modules/regex_stdlib.cpp2
-rw-r--r--modules/sasl.cpp6
-rw-r--r--modules/webcpanel/template_fileserver.h2
-rw-r--r--modules/xmlrpc_main.cpp2
38 files changed, 70 insertions, 70 deletions
diff --git a/modules/botserv/bs_badwords.cpp b/modules/botserv/bs_badwords.cpp
index e513170e7..5dee8ed2c 100644
--- a/modules/botserv/bs_badwords.cpp
+++ b/modules/botserv/bs_badwords.cpp
@@ -26,7 +26,7 @@ struct BadWordImpl final
data.SetType("type", Serialize::Data::DT_INT); data["type"] << this->type;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &);
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &);
};
struct BadWordsImpl final
@@ -40,7 +40,7 @@ struct BadWordsImpl final
~BadWordsImpl() override;
- BadWord* AddBadWord(const Anope::string &word, BadWordType type) override
+ BadWord *AddBadWord(const Anope::string &word, BadWordType type) override
{
auto *bw = new BadWordImpl();
bw->chan = ci->name;
@@ -54,7 +54,7 @@ struct BadWordsImpl final
return bw;
}
- BadWord* GetBadWord(unsigned index) const override
+ BadWord *GetBadWord(unsigned index) const override
{
if (this->badwords->empty() || index >= this->badwords->size())
return NULL;
@@ -117,7 +117,7 @@ BadWordImpl::~BadWordImpl()
}
}
-Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data)
+Serializable *BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci, sword;
diff --git a/modules/botserv/bs_kick.cpp b/modules/botserv/bs_kick.cpp
index fc8696410..a3e76fdab 100644
--- a/modules/botserv/bs_kick.cpp
+++ b/modules/botserv/bs_kick.cpp
@@ -175,7 +175,7 @@ public:
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0;
protected:
- bool CheckArguments(CommandSource &source, const std::vector<Anope::string> &params, ChannelInfo* &ci)
+ bool CheckArguments(CommandSource &source, const std::vector<Anope::string> &params, ChannelInfo *&ci)
{
const Anope::string &chan = params[0];
const Anope::string &option = params[1];
diff --git a/modules/chanserv/cs_access.cpp b/modules/chanserv/cs_access.cpp
index 7625f05aa..047ff4ec1 100644
--- a/modules/chanserv/cs_access.cpp
+++ b/modules/chanserv/cs_access.cpp
@@ -84,7 +84,7 @@ public:
return new AccessChanAccess(this);
}
};
-AccessAccessProvider* AccessAccessProvider::me;
+AccessAccessProvider *AccessAccessProvider::me;
class CommandCSAccess final
: public Command
diff --git a/modules/chanserv/cs_entrymsg.cpp b/modules/chanserv/cs_entrymsg.cpp
index c28c58bc9..df1f04581 100644
--- a/modules/chanserv/cs_entrymsg.cpp
+++ b/modules/chanserv/cs_entrymsg.cpp
@@ -38,7 +38,7 @@ struct EntryMsgImpl final
data.SetType("when", Serialize::Data::DT_INT); data["when"] << this->when;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data);
};
struct EntryMessageListImpl final
@@ -46,7 +46,7 @@ struct EntryMessageListImpl final
{
EntryMessageListImpl(Extensible *) { }
- EntryMsg* Create() override
+ EntryMsg *Create() override
{
return new EntryMsgImpl();
}
@@ -68,7 +68,7 @@ EntryMsgImpl::~EntryMsgImpl()
}
-Serializable* EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data)
+Serializable *EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci, screator, smessage;
time_t swhen;
diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp
index 5c0027677..38de5c49f 100644
--- a/modules/chanserv/cs_flags.cpp
+++ b/modules/chanserv/cs_flags.cpp
@@ -76,7 +76,7 @@ public:
return new FlagsChanAccess(this);
}
};
-FlagsAccessProvider* FlagsAccessProvider::ap;
+FlagsAccessProvider *FlagsAccessProvider::ap;
class CommandCSFlags final
: public Command
diff --git a/modules/chanserv/cs_log.cpp b/modules/chanserv/cs_log.cpp
index 847316db6..213940a5c 100644
--- a/modules/chanserv/cs_log.cpp
+++ b/modules/chanserv/cs_log.cpp
@@ -47,7 +47,7 @@ struct LogSettingImpl final
data.SetType("created", Serialize::Data::DT_INT); data["created"] << created;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci;
data["ci"] >> sci;
diff --git a/modules/chanserv/cs_mode.cpp b/modules/chanserv/cs_mode.cpp
index 05fb43c33..3aa8e709d 100644
--- a/modules/chanserv/cs_mode.cpp
+++ b/modules/chanserv/cs_mode.cpp
@@ -32,7 +32,7 @@ struct ModeLockImpl final
}
void Serialize(Serialize::Data &data) const override;
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data);
};
struct ModeLocksImpl final
@@ -213,7 +213,7 @@ void ModeLockImpl::Serialize(Serialize::Data &data) const
data.SetType("created", Serialize::Data::DT_INT); data["created"] << this->created;
}
-Serializable* ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data)
+Serializable *ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci;
diff --git a/modules/chanserv/cs_seen.cpp b/modules/chanserv/cs_seen.cpp
index 6f4119e2f..ff57949c4 100644
--- a/modules/chanserv/cs_seen.cpp
+++ b/modules/chanserv/cs_seen.cpp
@@ -55,7 +55,7 @@ struct SeenInfo final
data.SetType("last", Serialize::Data::DT_INT); data["last"] << last;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string snick;
@@ -66,7 +66,7 @@ struct SeenInfo final
s = anope_dynamic_static_cast<SeenInfo *>(obj);
else
{
- SeenInfo* &info = database[snick];
+ SeenInfo *&info = database[snick];
if (!info)
info = new SeenInfo();
s = info;
@@ -445,7 +445,7 @@ private:
if (simple || !u->server->IsSynced())
return;
- SeenInfo* &info = database[nick];
+ SeenInfo *&info = database[nick];
if (!info)
info = new SeenInfo();
info->nick = nick;
diff --git a/modules/chanserv/cs_set_misc.cpp b/modules/chanserv/cs_set_misc.cpp
index 9a2c8d70e..685ab8022 100644
--- a/modules/chanserv/cs_set_misc.cpp
+++ b/modules/chanserv/cs_set_misc.cpp
@@ -21,7 +21,7 @@ static Anope::map<ExtensibleItem<CSMiscData> *> items;
static ExtensibleItem<CSMiscData> *GetItem(const Anope::string &name)
{
- ExtensibleItem<CSMiscData>* &it = items[name];
+ ExtensibleItem<CSMiscData> *&it = items[name];
if (!it)
try
{
@@ -51,7 +51,7 @@ struct CSMiscData final
sdata["data"] << this->data;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string sci, sname, sdata;
diff --git a/modules/chanserv/cs_suspend.cpp b/modules/chanserv/cs_suspend.cpp
index 28f0debf4..a30227d6a 100644
--- a/modules/chanserv/cs_suspend.cpp
+++ b/modules/chanserv/cs_suspend.cpp
@@ -27,7 +27,7 @@ struct CSSuspendInfo final
data["expires"] << expires;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string schan;
data["chan"] >> schan;
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp
index 4137ab981..d2225ce88 100644
--- a/modules/database/db_flatfile.cpp
+++ b/modules/database/db_flatfile.cpp
@@ -22,7 +22,7 @@ public:
Anope::string last;
std::fstream *fs = nullptr;
- std::iostream& operator[](const Anope::string &key) override
+ std::iostream &operator[](const Anope::string &key) override
{
if (key != last)
{
@@ -44,7 +44,7 @@ public:
std::stringstream ss;
bool read = false;
- std::iostream& operator[](const Anope::string &key) override
+ std::iostream &operator[](const Anope::string &key) override
{
if (!read)
{
diff --git a/modules/database/db_redis.cpp b/modules/database/db_redis.cpp
index c7e2bc9e7..b4abcab7f 100644
--- a/modules/database/db_redis.cpp
+++ b/modules/database/db_redis.cpp
@@ -26,9 +26,9 @@ public:
delete stream;
}
- std::iostream& operator[](const Anope::string &key) override
+ std::iostream &operator[](const Anope::string &key) override
{
- std::stringstream* &stream = data[key];
+ std::stringstream *&stream = data[key];
if (!stream)
stream = new std::stringstream();
return *stream;
@@ -318,7 +318,7 @@ void ObjectLoader::OnResult(const Reply &r)
data[key->bulk] << value->bulk;
}
- Serializable* &obj = st->objects[this->id];
+ Serializable *&obj = st->objects[this->id];
obj = st->Unserialize(obj, data);
if (obj)
{
@@ -337,7 +337,7 @@ void IDInterface::OnResult(const Reply &r)
return;
}
- Serializable* &obj = o->GetSerializableType()->objects[r.i];
+ Serializable *&obj = o->GetSerializableType()->objects[r.i];
if (obj)
/* This shouldn't be possible */
obj->id = 0;
@@ -537,7 +537,7 @@ void SubscriptionListener::OnResult(const Reply &r)
}
else if (op == "del")
{
- Serializable* &s = s_type->objects[obj_id];
+ Serializable *&s = s_type->objects[obj_id];
if (s == NULL)
return;
@@ -587,7 +587,7 @@ void ModifiedObject::OnResult(const Reply &r)
return;
}
- Serializable* &obj = st->objects[this->id];
+ Serializable *&obj = st->objects[this->id];
/* Transaction start */
me->redis->StartTransaction();
diff --git a/modules/encryption/enc_bcrypt.cpp b/modules/encryption/enc_bcrypt.cpp
index e7c19a2ae..3dea3f2c6 100644
--- a/modules/encryption/enc_bcrypt.cpp
+++ b/modules/encryption/enc_bcrypt.cpp
@@ -30,14 +30,14 @@ class EBCRYPT final
return salt;
}
- Anope::string Generate(const Anope::string& data, const Anope::string& salt)
+ Anope::string Generate(const Anope::string &data, const Anope::string &salt)
{
char hash[64];
_crypt_blowfish_rn(data.c_str(), salt.c_str(), hash, sizeof(hash));
return hash;
}
- bool Compare(const Anope::string& string, const Anope::string& hash)
+ bool Compare(const Anope::string &string, const Anope::string &hash)
{
Anope::string ret = Generate(string, hash);
if (ret.empty())
diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp
index 58ecefd6d..bcd4b8406 100644
--- a/modules/extra/ldap.cpp
+++ b/modules/extra/ldap.cpp
@@ -220,7 +220,7 @@ public:
private:
#ifdef _WIN32
// Windows LDAP does not implement this so we need to do it.
- int ldap_initialize(LDAP** ldap, const char* url)
+ int ldap_initialize(LDAP **ldap, const char *url)
{
URL_COMPONENTS urlComponents;
memset(&urlComponents, 0, sizeof(urlComponents));
@@ -508,7 +508,7 @@ public:
}
}
- LDAP* GetConnection()
+ LDAP *GetConnection()
{
return con;
}
diff --git a/modules/extra/ssl_gnutls.cpp b/modules/extra/ssl_gnutls.cpp
index fdf5b1bff..520f877c0 100644
--- a/modules/extra/ssl_gnutls.cpp
+++ b/modules/extra/ssl_gnutls.cpp
@@ -39,7 +39,7 @@ class SSLSocketIO final
{
public:
gnutls_session_t sess = nullptr;
- GnuTLS::X509CertCredentials* mycreds;
+ GnuTLS::X509CertCredentials *mycreds;
/** Constructor
*/
@@ -181,7 +181,7 @@ namespace GnuTLS
throw ConfigException("Error loading private key: " + Anope::string(gnutls_strerror(ret)));
}
- gnutls_x509_privkey_t& get() { return key.key; }
+ gnutls_x509_privkey_t &get() { return key.key; }
};
class X509CertList final
@@ -219,7 +219,7 @@ namespace GnuTLS
gnutls_x509_crt_deinit(*i);
}
- gnutls_x509_crt_t* raw() { return &certs[0]; }
+ gnutls_x509_crt_t *raw() { return &certs[0]; }
unsigned int size() const { return certs.size(); }
};
@@ -236,7 +236,7 @@ namespace GnuTLS
return ret;
}
- 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);
+ 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);
public:
X509CertList certs;
@@ -628,7 +628,7 @@ SSLSocketIO::SSLSocketIO() : mycreds(me->cred)
mycreds->incrref();
}
-int GnuTLS::X509CertCredentials::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)
+int GnuTLS::X509CertCredentials::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)
{
st->cert_type = GNUTLS_CRT_X509;
st->key_type = GNUTLS_PRIVKEY_X509;
diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp
index 44612ada0..1156d0538 100644
--- a/modules/hostserv/hs_request.cpp
+++ b/modules/hostserv/hs_request.cpp
@@ -38,7 +38,7 @@ struct HostRequest final
data.SetType("time", Serialize::Data::DT_INT); data["time"] << this->time;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string snick;
data["nick"] >> snick;
diff --git a/modules/httpd.cpp b/modules/httpd.cpp
index 5c7a74ff5..b2eed517d 100644
--- a/modules/httpd.cpp
+++ b/modules/httpd.cpp
@@ -313,7 +313,7 @@ public:
}
}
- ClientSocket* OnAccept(int fd, const sockaddrs &addr) override
+ ClientSocket *OnAccept(int fd, const sockaddrs &addr) override
{
auto *c = new MyHTTPClient(this, fd, addr);
this->clients.emplace_back(c);
@@ -330,7 +330,7 @@ public:
this->pages.erase(page->GetURL());
}
- HTTPPage* FindPage(const Anope::string &pname) override
+ HTTPPage *FindPage(const Anope::string &pname) override
{
if (this->pages.count(pname) == 0)
return NULL;
diff --git a/modules/nickserv/ns_ajoin.cpp b/modules/nickserv/ns_ajoin.cpp
index 8f4b14112..19355f861 100644
--- a/modules/nickserv/ns_ajoin.cpp
+++ b/modules/nickserv/ns_ajoin.cpp
@@ -50,7 +50,7 @@ struct AJoinEntry final
sd["key"] << this->key;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &sd)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &sd)
{
Anope::string sowner;
diff --git a/modules/nickserv/ns_cert.cpp b/modules/nickserv/ns_cert.cpp
index 17cf1fb96..4f1b4ba57 100644
--- a/modules/nickserv/ns_cert.cpp
+++ b/modules/nickserv/ns_cert.cpp
@@ -19,7 +19,7 @@ struct CertServiceImpl final
{
CertServiceImpl(Module *o) : CertService(o) { }
- NickCore* FindAccountFromCert(const Anope::string &cert) override
+ NickCore *FindAccountFromCert(const Anope::string &cert) override
{
Anope::hash_map<NickCore *>::iterator it = certmap.find(cert);
if (it != certmap.end())
diff --git a/modules/nickserv/ns_group.cpp b/modules/nickserv/ns_group.cpp
index 2dfaeb9fc..3afec1061 100644
--- a/modules/nickserv/ns_group.cpp
+++ b/modules/nickserv/ns_group.cpp
@@ -102,7 +102,7 @@ public:
Anope::string nick;
if (params.empty())
{
- NickCore* core = source.GetAccount();
+ NickCore *core = source.GetAccount();
if (core)
nick = core->display;
}
diff --git a/modules/nickserv/ns_set_misc.cpp b/modules/nickserv/ns_set_misc.cpp
index 4fcf10a1b..6f8ad0f4e 100644
--- a/modules/nickserv/ns_set_misc.cpp
+++ b/modules/nickserv/ns_set_misc.cpp
@@ -21,7 +21,7 @@ static Anope::map<ExtensibleItem<NSMiscData> *> items;
static ExtensibleItem<NSMiscData> *GetItem(const Anope::string &name)
{
- ExtensibleItem<NSMiscData>* &it = items[name];
+ ExtensibleItem<NSMiscData> *&it = items[name];
if (!it)
try
{
@@ -51,7 +51,7 @@ struct NSMiscData final
sdata["data"] << this->data;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string snc, sname, sdata;
diff --git a/modules/nickserv/ns_suspend.cpp b/modules/nickserv/ns_suspend.cpp
index 97c69aae4..8ce2806ca 100644
--- a/modules/nickserv/ns_suspend.cpp
+++ b/modules/nickserv/ns_suspend.cpp
@@ -29,7 +29,7 @@ struct NSSuspendInfo final
data["expires"] << expires;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string snick;
data["nick"] >> snick;
diff --git a/modules/operserv/os_dns.cpp b/modules/operserv/os_dns.cpp
index 79f4bf43e..b2fb17be2 100644
--- a/modules/operserv/os_dns.cpp
+++ b/modules/operserv/os_dns.cpp
@@ -45,7 +45,7 @@ struct DNSZone final
data["server" + stringify(count++)] << server;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
DNSZone *zone;
Anope::string zone_name;
@@ -154,7 +154,7 @@ public:
data["zone" + stringify(count++)] << zone;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
DNSServer *req;
Anope::string server_name;
@@ -856,7 +856,7 @@ public:
if (req.questions.empty())
return;
/* Currently we reply to any QR for A/AAAA */
- const DNS::Question& q = req.questions[0];
+ const DNS::Question &q = req.questions[0];
if (q.type != DNS::QUERY_A && q.type != DNS::QUERY_AAAA && q.type != DNS::QUERY_AXFR && q.type != DNS::QUERY_ANY)
return;
diff --git a/modules/operserv/os_forbid.cpp b/modules/operserv/os_forbid.cpp
index a06f51bb0..4b19fbc4d 100644
--- a/modules/operserv/os_forbid.cpp
+++ b/modules/operserv/os_forbid.cpp
@@ -20,7 +20,7 @@ struct ForbidDataImpl final
{
ForbidDataImpl() : Serializable("ForbidData") { }
void Serialize(Serialize::Data &data) const override;
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data);
};
void ForbidDataImpl::Serialize(Serialize::Data &data) const
@@ -33,7 +33,7 @@ void ForbidDataImpl::Serialize(Serialize::Data &data) const
data["type"] << this->type;
}
-Serializable* ForbidDataImpl::Unserialize(Serializable *obj, Serialize::Data &data)
+Serializable *ForbidDataImpl::Unserialize(Serializable *obj, Serialize::Data &data)
{
if (!forbid_service)
return NULL;
diff --git a/modules/operserv/os_ignore.cpp b/modules/operserv/os_ignore.cpp
index 94cb807a1..b777158e5 100644
--- a/modules/operserv/os_ignore.cpp
+++ b/modules/operserv/os_ignore.cpp
@@ -19,7 +19,7 @@ struct IgnoreDataImpl final
IgnoreDataImpl() : Serializable("IgnoreData") { }
~IgnoreDataImpl() override;
void Serialize(Serialize::Data &data) const override;
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data);
};
IgnoreDataImpl::~IgnoreDataImpl()
@@ -36,7 +36,7 @@ void IgnoreDataImpl::Serialize(Serialize::Data &data) const
data["time"] << this->time;
}
-Serializable* IgnoreDataImpl::Unserialize(Serializable *obj, Serialize::Data &data)
+Serializable *IgnoreDataImpl::Unserialize(Serializable *obj, Serialize::Data &data)
{
if (!ignore_service)
return NULL;
diff --git a/modules/operserv/os_news.cpp b/modules/operserv/os_news.cpp
index 66f4a5026..067bfbc74 100644
--- a/modules/operserv/os_news.cpp
+++ b/modules/operserv/os_news.cpp
@@ -75,7 +75,7 @@ struct MyNewsItem final
data["time"] << this->time;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
if (!news_service)
return NULL;
diff --git a/modules/operserv/os_oper.cpp b/modules/operserv/os_oper.cpp
index 7f18da9ac..73cd793da 100644
--- a/modules/operserv/os_oper.cpp
+++ b/modules/operserv/os_oper.cpp
@@ -23,7 +23,7 @@ struct MyOper final
data["type"] << this->ot->GetName();
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
Anope::string stype, sname;
diff --git a/modules/operserv/os_session.cpp b/modules/operserv/os_session.cpp
index 213721b1a..ffa2b3cc9 100644
--- a/modules/operserv/os_session.cpp
+++ b/modules/operserv/os_session.cpp
@@ -116,7 +116,7 @@ public:
return this->Sessions.find(c);
}
- Session* &FindOrCreateSession(const cidr &ip)
+ Session *&FindOrCreateSession(const cidr &ip)
{
return this->Sessions[ip];
}
@@ -632,7 +632,7 @@ public:
if (!u_ip.valid())
return;
- Session* &session = this->ss.FindOrCreateSession(u_ip);
+ Session *&session = this->ss.FindOrCreateSession(u_ip);
if (session)
{
diff --git a/modules/operserv/os_stats.cpp b/modules/operserv/os_stats.cpp
index 82c62ce6e..fe4cd6f80 100644
--- a/modules/operserv/os_stats.cpp
+++ b/modules/operserv/os_stats.cpp
@@ -28,7 +28,7 @@ struct Stats final
data["maxusertime"] << MaxUserTime;
}
- static Serializable* Unserialize(Serializable *obj, Serialize::Data &data)
+ static Serializable *Unserialize(Serializable *obj, Serialize::Data &data)
{
data["maxusercnt"] >> MaxUserCount;
data["maxusertime"] >> MaxUserTime;
@@ -160,7 +160,7 @@ private:
return;
}
- template<typename T> void GetHashStats(const T& map, size_t& entries, size_t& buckets, size_t& max_chain)
+ template<typename T> void GetHashStats(const T &map, size_t &entries, size_t &buckets, size_t &max_chain)
{
entries = map.size(), buckets = map.bucket_count(), max_chain = 0;
for (size_t i = 0; i < buckets; ++i)
diff --git a/modules/operserv/os_sxline.cpp b/modules/operserv/os_sxline.cpp
index 3acaa5c35..769a25982 100644
--- a/modules/operserv/os_sxline.cpp
+++ b/modules/operserv/os_sxline.cpp
@@ -59,7 +59,7 @@ class CommandOSSXLineBase
: public Command
{
private:
- virtual XLineManager* xlm() = 0;
+ virtual XLineManager *xlm() = 0;
virtual void OnAdd(CommandSource &source, const std::vector<Anope::string> &params) = 0;
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp
index 642e6f193..e9a5ac163 100644
--- a/modules/protocol/bahamut.cpp
+++ b/modules/protocol/bahamut.cpp
@@ -59,7 +59,7 @@ public:
IRCDProto::SendModeInternal(source, chan, modes, values);
}
- void SendModeInternal(const MessageSource &source, User* u, const Anope::string &modes, const std::vector<Anope::string> &values) override
+ void SendModeInternal(const MessageSource &source, User *u, const Anope::string &modes, const std::vector<Anope::string> &values) override
{
auto params = values;
params.insert(params.begin(), { u->nick, stringify(u->timestamp), modes });
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp
index 3e19daf1a..c859ae98f 100644
--- a/modules/protocol/hybrid.cpp
+++ b/modules/protocol/hybrid.cpp
@@ -200,7 +200,7 @@ public:
Uplink::Send("EOB");
}
- void SendModeInternal(const MessageSource &source, User* u, const Anope::string &modes, const std::vector<Anope::string> &values) override
+ void SendModeInternal(const MessageSource &source, User *u, const Anope::string &modes, const std::vector<Anope::string> &values) override
{
auto params = values;
params.insert(params.begin(), { u->GetUID(), stringify(u->timestamp), modes });
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp
index d1d5a03b9..7cb86598a 100644
--- a/modules/protocol/inspircd.cpp
+++ b/modules/protocol/inspircd.cpp
@@ -918,7 +918,7 @@ struct IRCDMessageCapab final
Anope::string type;
};
- static bool ParseMode(const Anope::string& token, ModeInfo& mode)
+ static bool ParseMode(const Anope::string &token, ModeInfo &mode)
{
// list:ban=b param-set:limit=l param:key=k prefix:30000:op=@o simple:noextmsg=n
// A C A C A C A B C A C
@@ -1549,7 +1549,7 @@ public:
if (params[1].equals_cs("modules") && !params[2].empty())
{
// only interested when it comes from our uplink
- Server* server = source.GetServer();
+ Server *server = source.GetServer();
if (!server || server->GetUplink() != Me)
return;
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp
index c7f5e559a..fe0d37e22 100644
--- a/modules/protocol/plexus.cpp
+++ b/modules/protocol/plexus.cpp
@@ -141,7 +141,7 @@ public:
Uplink::Send("UID", u->nick, 1, u->timestamp, "+" + u->GetModes(), u->GetIdent(), u->host, "255.255.255.255", u->GetUID(), 0, u->host, u->realname);
}
- void SendModeInternal(const MessageSource &source, User* u, const Anope::string &modes, const std::vector<Anope::string> &values) override
+ void SendModeInternal(const MessageSource &source, User *u, const Anope::string &modes, const std::vector<Anope::string> &values) override
{
auto params = values;
params.insert(params.begin(), { "*", "SVSMODE", u->GetUID(), stringify(u->timestamp), modes });
diff --git a/modules/regex_stdlib.cpp b/modules/regex_stdlib.cpp
index d759cc8fd..0ef7e3f81 100644
--- a/modules/regex_stdlib.cpp
+++ b/modules/regex_stdlib.cpp
@@ -24,7 +24,7 @@ public:
{
regex.assign(expr.str(), type | std::regex::optimize);
}
- catch (const std::regex_error& error)
+ catch (const std::regex_error &error)
{
throw RegexException("Error in regex " + expr + ": " + error.what());
}
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 447662f34..815291166 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -93,7 +93,7 @@ public:
throw ModuleException("No CertFP");
}
- Session* CreateSession(const Anope::string &uid) override
+ Session *CreateSession(const Anope::string &uid) override
{
return new Session(this, uid);
}
@@ -206,7 +206,7 @@ public:
}
}
- Session* session = GetSession(m.source);
+ Session *session = GetSession(m.source);
if (m.type == "S")
{
@@ -267,7 +267,7 @@ public:
return agent;
}
- Session* GetSession(const Anope::string &uid) override
+ Session *GetSession(const Anope::string &uid) override
{
std::map<Anope::string, Session *>::iterator it = sessions.find(uid);
if (it != sessions.end())
diff --git a/modules/webcpanel/template_fileserver.h b/modules/webcpanel/template_fileserver.h
index 4f3987f53..8466a1736 100644
--- a/modules/webcpanel/template_fileserver.h
+++ b/modules/webcpanel/template_fileserver.h
@@ -17,7 +17,7 @@ public:
struct Replacements final
: std::multimap<Anope::string, Anope::string>
{
- Anope::string& operator[](const Anope::string &key)
+ Anope::string &operator[](const Anope::string &key)
{
return emplace(key, "")->second;
}
diff --git a/modules/xmlrpc_main.cpp b/modules/xmlrpc_main.cpp
index 9ac8ad8d1..cdf29d47f 100644
--- a/modules/xmlrpc_main.cpp
+++ b/modules/xmlrpc_main.cpp
@@ -21,7 +21,7 @@ class XMLRPCIdentifyRequest final
Reference<XMLRPCServiceInterface> xinterface;
public:
- XMLRPCIdentifyRequest(Module *m, XMLRPCRequest& req, HTTPClient *c, XMLRPCServiceInterface* iface, const Anope::string &acc, const Anope::string &pass) : IdentifyRequest(m, acc, pass), request(req), repl(request.r), client(c), xinterface(iface) { }
+ XMLRPCIdentifyRequest(Module *m, XMLRPCRequest &req, HTTPClient *c, XMLRPCServiceInterface *iface, const Anope::string &acc, const Anope::string &pass) : IdentifyRequest(m, acc, pass), request(req), repl(request.r), client(c), xinterface(iface) { }
void OnSuccess() override
{