diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 22:53:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 22:53:03 +0000 |
commit | db8cc20b73dd6c655697a556b9e8fe5b660f8d1d (patch) | |
tree | 429a4065b28b1156457cb7f89b20475383e1074a /src | |
parent | 5072f24b56def062382d76059e2662b0673ab30e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_banredirect.cpp | 3 |
1 files changed, 1 insertions, 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++) { |