diff options
| author | 2017-10-22 21:53:24 +0100 | |
|---|---|---|
| committer | 2017-10-28 16:16:10 +0100 | |
| commit | d865b434865907bfad0a187dd403d4ca8144e469 (patch) | |
| tree | 4c36b1028ab02ca8ac2d07b867819f96f38c2745 /src/modules/m_alias.cpp | |
| parent | Change SetClientIP to take a C++ string instead of a char array. (diff) | |
| download | inspircd++-d865b434865907bfad0a187dd403d4ca8144e469.tar.gz inspircd++-d865b434865907bfad0a187dd403d4ca8144e469.tar.bz2 inspircd++-d865b434865907bfad0a187dd403d4ca8144e469.zip | |
Hide User#host and User#dhost and use accessors to modify them.
This removes the need to invalidate the cache after changing a
user's hostname.
Diffstat (limited to 'src/modules/m_alias.cpp')
| -rw-r--r-- | src/modules/m_alias.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 95667e7ed..bdb242938 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -296,7 +296,7 @@ class ModuleAlias : public Module } else if (!newline.compare(i, 5, "$host", 5)) { - result.append(user->host); + result.append(user->GetRealHost()); i += 4; } else if (!newline.compare(i, 5, "$chan", 5)) @@ -312,7 +312,7 @@ class ModuleAlias : public Module } else if (!newline.compare(i, 6, "$vhost", 6)) { - result.append(user->dhost); + result.append(user->GetDisplayedHost()); i += 5; } else if (!newline.compare(i, 12, "$requirement", 12)) |
