summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-08-29 13:21:18 +0100
committerSadie Powell <sadie@witchery.services>2024-08-29 13:21:18 +0100
commitb4e673b2f405533438fc090a0cbb10cd1c047bec (patch)
tree33c4db6ad3ccf6a7d36145a2663974b65cce945f
parent58a78e9aa50f0d61cecc42d9833542fe99cbed1d (diff)
Refactor ns_getemail slightly.
-rw-r--r--modules/nickserv/ns_getemail.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/nickserv/ns_getemail.cpp b/modules/nickserv/ns_getemail.cpp
index e85fc12d6..af308a17b 100644
--- a/modules/nickserv/ns_getemail.cpp
+++ b/modules/nickserv/ns_getemail.cpp
@@ -15,11 +15,12 @@
#include "module.h"
-class CommandNSGetEMail final
+class CommandNSGetEmail final
: public Command
{
public:
- CommandNSGetEMail(Module *creator) : Command(creator, "nickserv/getemail", 1, 1)
+ CommandNSGetEmail(Module *creator)
+ : Command(creator, "nickserv/getemail", 1, 1)
{
this->SetDesc(_("Matches and returns all users that registered using given email"));
this->SetSyntax(_("\037email\037"));
@@ -59,16 +60,19 @@ public:
}
};
-class NSGetEMail final
+class NSGetEmail final
: public Module
{
- CommandNSGetEMail commandnsgetemail;
+private:
+ CommandNSGetEmail commandnsgetemail;
+
public:
- NSGetEMail(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- commandnsgetemail(this)
+ NSGetEmail(const Anope::string &modname, const Anope::string &creator)
+ : Module(modname, creator, VENDOR)
+ , commandnsgetemail(this)
{
}
};
-MODULE_INIT(NSGetEMail)
+MODULE_INIT(NSGetEmail)