mirror of
https://github.com/anope/anope.git
synced 2026-07-08 18:03:13 +02:00
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
This commit is contained in:
@@ -94,7 +94,7 @@ class LoadData : public Serialize::Data
|
||||
hash ^= Anope::hash_cs()(it->second);
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
void Reset()
|
||||
{
|
||||
id = 0;
|
||||
@@ -247,7 +247,7 @@ class DBFlatFile : public Module, public Pipe
|
||||
Serialize::Type *stype = Serialize::Type::Find(type_order[i]);
|
||||
if (!stype || stype->GetOwner())
|
||||
continue;
|
||||
|
||||
|
||||
std::vector<std::streampos> &pos = positions[stype->GetName()];
|
||||
|
||||
for (unsigned j = 0; j < pos.size(); ++j)
|
||||
@@ -411,5 +411,3 @@ class DBFlatFile : public Module, public Pipe
|
||||
};
|
||||
|
||||
MODULE_INIT(DBFlatFile)
|
||||
|
||||
|
||||
|
||||
@@ -689,7 +689,7 @@ static void LoadVHosts()
|
||||
NickAlias *na = NickAlias::Find(nick);
|
||||
if (na == NULL)
|
||||
{
|
||||
Log() << "Removing vhost for non-existent nick " << nick;
|
||||
Log() << "Removing vhost for nonexistent nick " << nick;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ static void LoadChannels()
|
||||
if (in_use)
|
||||
{
|
||||
ChanAccess *access = NULL;
|
||||
|
||||
|
||||
if (xop)
|
||||
{
|
||||
if (provider_xop)
|
||||
@@ -1214,7 +1214,7 @@ static void LoadExceptions()
|
||||
dbFILE *f = open_db_read("OperServ", "exception.db", 9);
|
||||
if (f == NULL)
|
||||
return;
|
||||
|
||||
|
||||
int16_t num;
|
||||
READ(read_int16(&num, f));
|
||||
for (int i = 0; i < num; ++i)
|
||||
@@ -1358,4 +1358,3 @@ class DBOld : public Module
|
||||
};
|
||||
|
||||
MODULE_INIT(DBOld)
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ class DatabaseRedis : public Module, public Pipe
|
||||
std::vector<Anope::string> args;
|
||||
args.push_back("SMEMBERS");
|
||||
args.push_back("ids:" + sb->GetName());
|
||||
|
||||
|
||||
redis->SendCommand(new TypeLoader(this, sb->GetName()), args);
|
||||
}
|
||||
|
||||
@@ -456,14 +456,14 @@ void SubscriptionListener::OnResult(const Reply &r)
|
||||
*/
|
||||
if (r.multi_bulk.size() != 4)
|
||||
return;
|
||||
|
||||
|
||||
size_t sz = r.multi_bulk[2]->bulk.find(':');
|
||||
if (sz == Anope::string::npos)
|
||||
return;
|
||||
|
||||
|
||||
const Anope::string &key = r.multi_bulk[2]->bulk.substr(sz + 1),
|
||||
&op = r.multi_bulk[3]->bulk;
|
||||
|
||||
|
||||
sz = key.rfind(':');
|
||||
if (sz == Anope::string::npos)
|
||||
return;
|
||||
@@ -479,7 +479,7 @@ void SubscriptionListener::OnResult(const Reply &r)
|
||||
|
||||
if (s_type == NULL)
|
||||
return;
|
||||
|
||||
|
||||
uint64_t obj_id;
|
||||
try
|
||||
{
|
||||
|
||||
@@ -266,4 +266,3 @@ class DBSQL : public Module, public Pipe
|
||||
};
|
||||
|
||||
MODULE_INIT(DBSQL)
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ class DBMySQL : public Module, public Pipe
|
||||
|
||||
void OnSerializableDestruct(Serializable *obj) anope_override
|
||||
{
|
||||
if (!this->CheckInit())
|
||||
if (!this->CheckInit())
|
||||
return;
|
||||
Serialize::Type *s_type = obj->GetSerializableType();
|
||||
if (s_type)
|
||||
@@ -262,4 +262,3 @@ class DBMySQL : public Module, public Pipe
|
||||
};
|
||||
|
||||
MODULE_INIT(DBMySQL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user