summaryrefslogtreecommitdiff
path: root/include/account.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-05 17:23:22 -0500
committerAdam <Adam@anope.org>2011-03-05 17:23:22 -0500
commit6fe2d8af973dfb0c81f513e56488e39a4eea2fbf (patch)
tree432b93053ef56d1ff98b3193d5768a4ca16d3785 /include/account.h
parent90e5d0feaa1646c28cfce45dbde1a914a6f1d62c (diff)
Removed nickrequests, instead have unconfirmed registrations. Also made ns_resetpass allow remote-id to get past things such as kill immed.
Diffstat (limited to 'include/account.h')
-rw-r--r--include/account.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/include/account.h b/include/account.h
index b4a792caf..8615083b9 100644
--- a/include/account.h
+++ b/include/account.h
@@ -5,15 +5,12 @@
class NickAlias;
class NickCore;
-class NickRequest;
typedef unordered_map_namespace::unordered_map<Anope::string, NickAlias *, ci::hash, std::equal_to<ci::string> > nickalias_map;
typedef unordered_map_namespace::unordered_map<Anope::string, NickCore *, ci::hash, std::equal_to<ci::string> > nickcore_map;
-typedef unordered_map_namespace::unordered_map<Anope::string, NickRequest *, ci::hash, std::equal_to<ci::string> > nickrequest_map;
extern CoreExport nickalias_map NickAliasList;
extern CoreExport nickcore_map NickCoreList;
-extern CoreExport nickrequest_map NickRequestList;
/* NickServ nickname structures. */
@@ -85,6 +82,9 @@ enum NickCoreFlag
NI_AUTOOP,
/* This nickcore is forbidden, which means the nickalias for it is aswell */
NI_FORBIDDEN,
+ /* If set means the nick core does not have their email addrses confirmed.
+ */
+ NI_UNCONFIRMED,
NI_END
};
@@ -92,22 +92,7 @@ enum NickCoreFlag
const Anope::string NickCoreFlagStrings[] = {
"BEGIN", "KILLPROTECT", "SECURE", "MSG", "MEMO_HARDMAX", "MEMO_SIGNON", "MEMO_RECEIVE",
"PRIVATE", "HIDE_EMAIL", "HIDE_MASK", "HIDE_QUIT", "KILL_QUICK", "KILL_IMMED",
- "MEMO_MAIL", "HIDE_STATUS", "SUSPENDED", "AUTOOP", "FORBIDDEN", ""
-};
-
-class CoreExport NickRequest : public Extensible
-{
- public:
- NickRequest(const Anope::string &nickname);
-
- ~NickRequest();
-
- Anope::string nick;
- Anope::string passcode;
- Anope::string password;
- Anope::string email;
- time_t requested;
- time_t lastmail; /* Unsaved */
+ "MEMO_MAIL", "HIDE_STATUS", "SUSPENDED", "AUTOOP", "FORBIDDEN", "UNCONFIRMED", ""
};
class NickCore;