summaryrefslogtreecommitdiff
path: root/src/core/ns_sendpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ns_sendpass.cpp')
-rw-r--r--src/core/ns_sendpass.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/ns_sendpass.cpp b/src/core/ns_sendpass.cpp
index 0708f5f24..d75f38e8f 100644
--- a/src/core/ns_sendpass.cpp
+++ b/src/core/ns_sendpass.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"
@@ -74,17 +73,17 @@ class NSSendPass : public Module
public:
NSSendPass(const std::string &modname, const std::string &creator) : Module(modname, creator)
{
- this->SetAuthor("Anope");
- this->SetType(CORE);
-
- this->AddCommand(NickServ, new CommandNSSendPass());
-
if (!Config.UseMail)
throw ModuleException("Not using mail, whut.");
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 CommandNSSendPass());
}
};