Fix sillies

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9457 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-04-11 16:03:39 +00:00
parent d75ec0e5a5
commit 9a7af3161c

View File

@ -1096,7 +1096,7 @@ const char* User::GetIPString(bool translate4in6)
{
strlcpy(&temp[1], buf, sizeof(temp) - 1);
*temp = '0';
if (translate4in6 && !strncmp(GetIPString(), "0::ffff:", 8))
if (translate4in6 && !strncmp(temp, "0::ffff:", 8))
{
this->cachedip = temp + 8;
return temp + 8;