summaryrefslogtreecommitdiff
path: root/src/core/db_plain.cpp
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-02 04:55:43 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-02 04:55:43 +0000
commit3617d7978899f830d952d9bac70ed14bb0cc0fd6 (patch)
treefa5fe5d8f8f3bd87f649e2467f60e1d87ba2a71c /src/core/db_plain.cpp
parent657e1deb590eaba38ea3e9a9fb353dc0e23c1a41 (diff)
Convert 'const char *' and 'char *' function arguments to 'const std::string &' instead, done in actions.c along with chain reactions in other files.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2723 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/db_plain.cpp')
-rw-r--r--src/core/db_plain.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp
index b551d0b5c..4648378a8 100644
--- a/src/core/db_plain.cpp
+++ b/src/core/db_plain.cpp
@@ -78,7 +78,7 @@ static void ReadDatabase(Module *m = NULL)
}
if (MOD_RESULT == EVENT_STOP)
continue;
-
+
std::string mdbuf;
NickCore *nc;
NickAlias *na;
@@ -98,7 +98,7 @@ static void ReadDatabase(Module *m = NULL)
}
else if (params[0] == "BI")
{
- bi = findbot(params[1].c_str());
+ bi = findbot(params[1]);
Type = MD_BI;
}
else if (params[0] == "CH")
@@ -731,7 +731,7 @@ class DBPlain : public Module
ak->SetFlag(AK_STUCK);
if (Nick)
ak->SetFlag(AK_ISNICK);
-
+
}
else if (key == "MLOCK_ON" || buf == "MLOCK_OFF")
{
@@ -773,7 +773,7 @@ class DBPlain : public Module
else if (key == "BI")
{
if (params[0] == "NAME")
- ci->bi = findbot(params[1].c_str());
+ ci->bi = findbot(params[1]);
else if (params[0] == "FLAGS")
{
for (unsigned j = 1; j < params.size(); ++j)
@@ -1082,7 +1082,7 @@ class DBPlain : public Module
FOREACH_MOD(I_OnDatabaseWriteMetadata, OnDatabaseWriteMetadata(WriteMetadata, ci));
}
}
-
+
HostCore *hc;
for (hc = hostCoreListHead(); hc; hc = hc->next)
{