summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_banredirect.cpp3
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++)
{