diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-17 21:10:06 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-17 21:10:06 +0000 |
commit | 83c2e15a7de4abed1e286d9e0758a9d92ddbb480 (patch) | |
tree | d44cfa86aace24d4734027f738ce12f4def2948b /src/modules/m_showwhois.cpp | |
parent | 0036e619c5c2bb291e62c8eea7c0154e26fa3fb6 (diff) |
Fix realhost leak when users on different servers get +W notifications. Noticed by mooncup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11311 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r-- | src/modules/m_showwhois.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 04834634d..473fd6adc 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -86,7 +86,8 @@ class ModuleShowwhois : public Module std::string wmsg = "*** "; wmsg += source->nick + " (" + source->ident + "@"; - if (dest->HasPrivPermission("users/auspex")) + /* XXX HasPrivPermission doesn't work correctly for remote users */ + if (IS_LOCAL(dest) && dest->HasPrivPermission("users/auspex")) { wmsg += source->host; } |