summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-09 15:35:12 +0200
committerattilamolnar <attilamolnar@hush.com>2012-09-13 18:51:28 +0200
commit2115bd71dc5307cdcda1b7d7be3b9d9b0545531f (patch)
tree1fa41e05856843c1385aa47940549bf080c043bd /include
parent91abba488ad4b2c5bf59c720cde387b6390528d9 (diff)
Call OnUserSetIP() whenever the IP of a local user changes, set ident,host,dhost in LocalUser constructor
Diffstat (limited to 'include')
-rw-r--r--include/users.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 57dea3fa5..5a8864cdd 100644
--- a/include/users.h
+++ b/include/users.h
@@ -395,6 +395,8 @@ class CoreExport User : public Extensible
*/
bool SetClientIP(const char* sip);
+ void SetClientIP(const irc::sockets::sockaddrs& sa);
+
/** Constructor
* @throw CoreException if the UID allocated to the user already exists
*/
@@ -819,6 +821,10 @@ class CoreExport LocalUser : public User, public InviteBase
*/
void SetClass(const std::string &explicit_name = "");
+ bool SetClientIP(const char* sip);
+
+ void SetClientIP(const irc::sockets::sockaddrs& sa);
+
void SendText(const std::string& line);
void Write(const std::string& text);
void Write(const char*, ...) CUSTOM_PRINTF(2, 3);