diff options
| author | 2006-01-27 15:26:59 +0000 | |
|---|---|---|
| committer | 2006-01-27 15:26:59 +0000 | |
| commit | 653638c68684ec035fd58bc2d0d91c9bf9aa2ab9 (patch) | |
| tree | 364fd9cce4e2e8d6e86ddc3f1267b98dbed51854 /src/dnsqueue.cpp | |
| parent | Moved to extra/ - not all systems have stdint.h yet? (diff) | |
Improved IP handling. Now uses in_addr to store client ip, not char[16]!
Added global and local session limits
All of this needs TESTING.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2934 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
| -rw-r--r-- | src/dnsqueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 7e2ad86c3..dee671aa1 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -125,7 +125,7 @@ public: } if ((hostname != "") && (usr->registered != 7)) { - if (std::string(usr->ip) == ip) + if (std::string((char*)inet_ntoa(usr->ip4)) == ip) { strlcpy(usr->host,hostname.c_str(),MAXBUF); strlcpy(usr->dhost,hostname.c_str(),MAXBUF); |
