1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 17:56:38 +02:00

Fixed db upgrade loading forbidden nicks

This commit is contained in:
Adam
2011-01-24 01:08:28 -05:00
parent 7c30d223fb
commit d7206c8f38
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ static void LoadNickCore(const std::vector<Anope::string> &params)
/* Clear default flags */
nc->ClearFlags();
nc->pass = params[1];
nc->pass = params.size() > 1 ? params[1] : "";
Log(LOG_DEBUG_2) << "[db_plain]: Loaded NickCore " << nc->display;
}
+2
View File
@@ -191,6 +191,8 @@ int main(int argc, char *argv[])
if (line.substr(0, 2) == "NC")
{
std::vector<std::string> parts = BuildStringVector(line);
if (parts.size() < 3)
continue;
std::string password = parts[2];
size_t colon = password.find(':');
if (colon != std::string::npos && password.substr(0, colon) != "plain")