From f25755bbe748f65eb17f8e25507160569f8f4041 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Aug 2006 01:59:41 +0000 Subject: Change to using userrec::ip as a sockaddr to store port, ip and address family, rather than userrec::ip4 and userrec::port. This allows us to handle remote ipv6 users on an ipv4 server, and vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4694 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_whois.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_whois.cpp') diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp index 0914f75f4..efa8b44aa 100644 --- a/src/cmd_whois.cpp +++ b/src/cmd_whois.cpp @@ -48,7 +48,7 @@ void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long i WriteServ(user->fd,"311 %s %s %s %s * :%s",user->nick, dest->nick, dest->ident, dest->dhost, dest->fullname); if ((user == dest) || (*user->oper)) { - WriteServ(user->fd,"378 %s %s :is connecting from *@%s %s",user->nick, dest->nick, dest->host, insp_ntoa(dest->ip4)); + WriteServ(user->fd,"378 %s %s :is connecting from *@%s %s",user->nick, dest->nick, dest->host, dest->GetIPString()); } std::string cl = chlist(dest,user); if (cl.length()) -- cgit v1.2.3