summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-06-11 22:06:36 -0500
committerSir Poggles <sir.pogsalot@gmail.com>2012-06-12 22:49:29 -0700
commitf0474272303ac9297f637ce956315518138bafff (patch)
tree8c79e5206ee53282b252ad876d66f4ab08fe49c5 /include
parent5db5dd923c6dc3f4c24b592148060b258b295cde (diff)
users: add SetClientIP function for irc::sockets::sockaddrs type.
Code which touches client_sa should instead use this SetClientIP function so that hooks may be called in the future.
Diffstat (limited to 'include')
-rw-r--r--include/users.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 56297bed8..cdc0d8078 100644
--- a/include/users.h
+++ b/include/users.h
@@ -394,6 +394,11 @@ class CoreExport User : public Extensible
*/
bool SetClientIP(const char* sip);
+ /** Sets the client IP for this user
+ * @return true always
+ */
+ bool SetClientIP(irc::sockets::sockaddrs *sa);
+
/** Constructor
* @throw CoreException if the UID allocated to the user already exists
*/