summaryrefslogtreecommitdiff
path: root/modules/database
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2017-01-17 05:03:25 +0100
committerRobby <robby@chatbelgie.be>2017-01-17 05:03:25 +0100
commit76ce8ece1a4803c98bfe9460f40bf8e0fbc409e6 (patch)
tree26e6da47f20de64ef76fe4afc459bbb7889bd417 /modules/database
parent464093d36e87f3df999145e42ed30fc0dfc55c52 (diff)
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'modules/database')
-rw-r--r--modules/database/db_flatfile.cpp6
-rw-r--r--modules/database/db_old.cpp7
-rw-r--r--modules/database/db_redis.cpp10
-rw-r--r--modules/database/db_sql.cpp1
-rw-r--r--modules/database/db_sql_live.cpp3
5 files changed, 11 insertions, 16 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp
index 3b9b8c3c4..fff1e7b59 100644
--- a/modules/database/db_flatfile.cpp
+++ b/modules/database/db_flatfile.cpp
@@ -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)
-
-
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp
index dc1060abc..55b6bedc7 100644
--- a/modules/database/db_old.cpp
+++ b/modules/database/db_old.cpp
@@ -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)
-
diff --git a/modules/database/db_redis.cpp b/modules/database/db_redis.cpp
index b51fa5d0e..5dfb6accf 100644
--- a/modules/database/db_redis.cpp
+++ b/modules/database/db_redis.cpp
@@ -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
{
diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp
index 32c261b23..377c4cd30 100644
--- a/modules/database/db_sql.cpp
+++ b/modules/database/db_sql.cpp
@@ -266,4 +266,3 @@ class DBSQL : public Module, public Pipe
};
MODULE_INIT(DBSQL)
-
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp
index f82db6d52..538ff0a64 100644
--- a/modules/database/db_sql_live.cpp
+++ b/modules/database/db_sql_live.cpp
@@ -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)
-