diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-27 11:55:39 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-27 11:55:39 -0400 |
commit | 9269d20a704bc4e67533b15772a7d72ac742c6bf (patch) | |
tree | 1e052a4630e6d41b8ffb01c68b7c2613443e4e7b /src/core/ns_getpass.cpp | |
parent | 57caa0b53f53927c72811ffffda8bb527975860f (diff) |
The next of a few "CBX OCDing over code style" commits, focusing on src/core/ns_*.
Diffstat (limited to 'src/core/ns_getpass.cpp')
-rw-r--r-- | src/core/ns_getpass.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/ns_getpass.cpp b/src/core/ns_getpass.cpp index 98170b7ac..e6f6533a3 100644 --- a/src/core/ns_getpass.cpp +++ b/src/core/ns_getpass.cpp @@ -7,9 +7,8 @@ * * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. - * - * */ + /*************************************************************************/ #include "module.h" @@ -81,14 +80,14 @@ class NSGetPass : public Module public: NSGetPass(const std::string &modname, const std::string &creator) : Module(modname, creator) { + std::string tmp_pass = "plain:tmp"; + if (enc_decrypt(tmp_pass, tmp_pass) == -1) + throw ModuleException("Incompatible with the encryption module being used"); + this->SetAuthor("Anope"); this->SetType(CORE); this->AddCommand(NickServ, new CommandNSGetPass()); - - std::string tmp_pass = "plain:tmp"; - if (enc_decrypt(tmp_pass, tmp_pass) == -1) - throw ModuleException("Incompatible with the encryption module being used"); } }; |