From f0474272303ac9297f637ce956315518138bafff Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 11 Jun 2012 22:06:36 -0500 Subject: 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. --- include/users.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/users.h') 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 */ -- cgit v1.2.3