mirror of
https://github.com/anope/anope.git
synced 2026-07-01 19:26:40 +02:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user