1
0
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:
Robby
2017-01-17 05:03:25 +01:00
parent 464093d36e
commit 76ce8ece1a
204 changed files with 442 additions and 550 deletions
+2 -4
View File
@@ -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)
+3 -4
View File
@@ -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)
+5 -5
View File
@@ -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
{
-1
View File
@@ -266,4 +266,3 @@ class DBSQL : public Module, public Pipe
};
MODULE_INIT(DBSQL)
+1 -2
View File
@@ -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)