diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-03-12 09:27:16 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-03-12 09:27:16 +0100 |
commit | fbae3344ff70f9e035292fdc9a6e09efc2702aed (patch) | |
tree | 440df041a811317db159365a6322bae9cd596643 /modules/core/db_plain.cpp | |
parent | 95469fde3055e1a257fd4e1027617892b912d07c (diff) |
added ns_cert
Diffstat (limited to 'modules/core/db_plain.cpp')
-rw-r--r-- | modules/core/db_plain.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index c20a78577..550f229a1 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -485,6 +485,8 @@ class DBPlain : public Module nc->greet = params[0]; else if (key.equals_ci("ACCESS")) nc->AddAccess(params[0]); + else if (key.equals_ci("CERT")) + nc->AddCert(params[0]); else if (key.equals_ci("FLAGS")) nc->FromString(params); else if (key.equals_ci("MI")) @@ -737,6 +739,11 @@ class DBPlain : public Module for (std::vector<Anope::string>::iterator it = nc->access.begin(), it_end = nc->access.end(); it != it_end; ++it) db_buffer << "MD ACCESS " << *it << endl; } + if (!nc->cert.empty()) + { + for (std::vector<Anope::string>::iterator it = nc->cert.begin(), it_end = nc->cert.end(); it != it_end; ++it) + db_buffer << "MD CERT " << *it << endl; + } if (nc->FlagCount()) db_buffer << "MD FLAGS " << ToString(nc->ToString()) << endl; MemoInfo *mi = &nc->memos; |