From db8cc20b73dd6c655697a556b9e8fe5b660f8d1d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Jan 2007 22:53:03 +0000 Subject: Why are we doing append() craq here, when theres a nice cached userrec::GetHostIP() to use? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6342 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banredirect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 8654e75f2..dac9b9d43 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -222,8 +222,7 @@ class ModuleBanRedirect : public Module { /* We actually had some ban redirects to check */ - std::string ipmask(user->nick); - ipmask.append('!', 1).append(user->ident).append('@', 1).append(user->GetIPString()); + std::string ipmask(user->MakeHostIP()); for(BanRedirectList::iterator redir = redirects->begin(); redir != redirects->end(); redir++) { -- cgit v1.2.3