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/ns_release.cpp | |
parent | 95469fde3055e1a257fd4e1027617892b912d07c (diff) |
added ns_cert
Diffstat (limited to 'modules/core/ns_release.cpp')
-rw-r--r-- | modules/core/ns_release.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/ns_release.cpp b/modules/core/ns_release.cpp index 3468d1119..ff0424577 100644 --- a/modules/core/ns_release.cpp +++ b/modules/core/ns_release.cpp @@ -43,6 +43,7 @@ class CommandNSRelease : public Command if (res == 1) { Log(LOG_COMMAND, u, this) << "released " << na->nick; + na->Release(); source.Reply(_("Services' hold on your nick has been released.")); } else @@ -58,7 +59,8 @@ class CommandNSRelease : public Command } else { - if (u->Account() == na->nc || (!na->nc->HasFlag(NI_SECURE) && is_on_access(u, na->nc))) + if (u->Account() == na->nc || (!na->nc->HasFlag(NI_SECURE) && is_on_access(u, na->nc)) || + (!u->fingerprint.empty() && na->nc->FindCert(u->fingerprint))) { na->Release(); source.Reply(_("Services' hold on your nick has been released.")); |