diff options
| author | 2017-08-28 15:13:25 +0100 | |
|---|---|---|
| committer | 2017-09-12 15:05:24 +0100 | |
| commit | 3b595d39a50e38283768bc6ec8aeb9e73071224f (patch) | |
| tree | 06a0e9e38726eaa7ece24bb288f85e318cca70a3 /src/users.cpp | |
| parent | Clean up the <security:runas{user,group}> code. (diff) | |
| download | inspircd++-3b595d39a50e38283768bc6ec8aeb9e73071224f.tar.gz inspircd++-3b595d39a50e38283768bc6ec8aeb9e73071224f.tar.bz2 inspircd++-3b595d39a50e38283768bc6ec8aeb9e73071224f.zip | |
Get rid of irc::sockets::satoap().
This function is being misused in all but one scenario. It isn't
really worth keeping IMO.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index dd0d54286..7d72692d9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -681,10 +681,9 @@ int LocalUser::GetServerPort() const std::string& User::GetIPString() { - int port; if (cachedip.empty()) { - irc::sockets::satoap(client_sa, cachedip, port); + cachedip = client_sa.addr(); /* IP addresses starting with a : on irc are a Bad Thing (tm) */ if (cachedip[0] == ':') cachedip.insert(cachedip.begin(),1,'0'); |
