summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_invisible.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index 35395ed15..41de98e3d 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -81,6 +81,10 @@ class InvisibleMode : public ModeHandler
}
dest->SetMode('Q', adding);
+
+ /* Set visibility handler object */
+ dest->Visibility = adding ? qo : NULL;
+
/* User appears to vanish or appear from nowhere */
for (UCListIter f = dest->chans.begin(); f != dest->chans.end(); f++)
{