summaryrefslogtreecommitdiff
path: root/include/account.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-20 19:49:01 +0000
committerSadie Powell <sadie@witchery.services>2025-02-20 19:49:01 +0000
commit0c193f8149a0af210383a1798586075d132e4904 (patch)
tree7b4f2479516ed6e2e88d8f9c25228b39b4088d0c /include/account.h
parentfa0f78b937a970049623d11361d106cf2f12cedd (diff)
Store the source address in the identify request.
Diffstat (limited to 'include/account.h')
-rw-r--r--include/account.h4
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,