From 83c2e15a7de4abed1e286d9e0758a9d92ddbb480 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 17 Apr 2009 21:10:06 +0000 Subject: 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 --- src/modules/m_showwhois.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3