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:
@@ -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> ¶ms)
|
||||
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> ¶ms)
|
||||
|
||||
Reference in New Issue
Block a user