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