diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-20 19:49:01 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-20 19:49:01 +0000 |
commit | 0c193f8149a0af210383a1798586075d132e4904 (patch) | |
tree | 7b4f2479516ed6e2e88d8f9c25228b39b4088d0c /include/account.h | |
parent | fa0f78b937a970049623d11361d106cf2f12cedd (diff) |
Store the source address in the identify request.
Diffstat (limited to 'include/account.h')
-rw-r--r-- | include/account.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/account.h b/include/account.h index 487a79b00..5c2e52fd2 100644 --- a/include/account.h +++ b/include/account.h @@ -196,6 +196,7 @@ class CoreExport IdentifyRequest Module *owner; Anope::string account; Anope::string password; + Anope::string address; std::set<Module *> holds; bool dispatched = false; @@ -204,7 +205,7 @@ class CoreExport IdentifyRequest static std::set<IdentifyRequest *> Requests; protected: - IdentifyRequest(Module *o, const Anope::string &acc, const Anope::string &pass); + IdentifyRequest(Module *o, const Anope::string &acc, const Anope::string &pass, const Anope::string &ip); virtual ~IdentifyRequest(); public: @@ -215,6 +216,7 @@ public: Module *GetOwner() const { return owner; } const Anope::string &GetAccount() const { return account; } const Anope::string &GetPassword() const { return password; } + const Anope::string &GetAddress() const { return address; } /* Holds this request. When a request is held it must be Released later * for the request to complete. Multiple modules may hold a request at any time, |