diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-27 19:15:23 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-27 19:15:23 +0100 |
commit | 08f6f056667df63d1673bea959c73b75393113c6 (patch) | |
tree | f051b9cc25c7eea86183560118dde0b777c6dd9a /include | |
parent | 998967b58afb411c70dbf772758d4e1a1c7bea7e (diff) |
Change SetClientIP to take a C++ string instead of a char array.
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h index 2fbbf31b6..03d94b28b 100644 --- a/include/users.h +++ b/include/users.h @@ -371,7 +371,7 @@ class CoreExport User : public Extensible /** Sets the client IP for this user * @return true if the conversion was successful */ - virtual bool SetClientIP(const char* sip, bool recheck_eline = true); + virtual bool SetClientIP(const std::string& address, bool recheck_eline = true); virtual void SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline = true); @@ -837,7 +837,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local */ void SetClass(const std::string &explicit_name = ""); - bool SetClientIP(const char* sip, bool recheck_eline = true) CXX11_OVERRIDE; + bool SetClientIP(const std::string& address, bool recheck_eline = true) CXX11_OVERRIDE; void SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline = true) CXX11_OVERRIDE; |