From 653638c68684ec035fd58bc2d0d91c9bf9aa2ab9 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 27 Jan 2006 15:26:59 +0000 Subject: 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 --- src/dnsqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dnsqueue.cpp') 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); -- cgit v1.2.3