1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 07:23:14 +02:00

Changed 'char *' fields in BotInfo to 'std::string', cleanup of bots.cpp, changed many other functions to use 'const std::string &' arguments as a chain reaction.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2733 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2010-01-04 06:40:24 +00:00
parent 2708eea5d1
commit b462814760
33 changed files with 202 additions and 264 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ static void ReadDatabase(Module *m = NULL)
}
else if (params[0] == "CH")
{
ci = cs_findchan(params[1].c_str());
ci = cs_findchan(params[1]);
Type = MD_CH;
}
else if (params[0] == "MD")
@@ -435,7 +435,7 @@ static void LoadBotInfo(const std::vector<std::string> &params)
bi->real = sstrdup(params[6].c_str());
if (debug > 1)
alog("[db_plain]: Loaded botinfo for %s", bi->nick);
alog("[db_plain]: Loaded botinfo for %s", bi->nick.c_str());
}
static void LoadChanInfo(const std::vector<std::string> &params)