1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 12:26:39 +02:00

Fixed many bugs and crashes

This commit is contained in:
Adam
2010-09-16 21:16:20 -04:00
parent cd1e9f3181
commit 86c1dab286
7 changed files with 45 additions and 45 deletions
+3 -3
View File
@@ -770,9 +770,9 @@ class DBPlain : public Module
else if (key.equals_ci("MLP"))
{
std::vector<std::pair<Anope::string, Anope::string> > mlp;
for (unsigned j = 0, end = params.size(); j < end; j += 2)
mlp.push_back(std::make_pair(params[j], params[j + 1]));
ci->GetExtRegular("db_mlp", mlp);
mlp.push_back(std::make_pair(params[0], params[1]));
/* For now store mlocked modes in extensible, Anope hasn't yet connected to the IRCd and doesn't know what modes exist */
ci->Extend("db_mlp", new ExtensibleItemRegular<std::vector<std::pair<Anope::string, Anope::string> > >(mlp));