summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_hidechans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp
index 7bb2a21c4..61f476f70 100644
--- a/src/modules/m_hidechans.cpp
+++ b/src/modules/m_hidechans.cpp
@@ -87,7 +87,7 @@ class ModuleHideChans : public Module
/* Dont display channels if they have +I set and the
* person doing the WHOIS is not an oper
*/
- return ((!*user->oper) && (numeric == 319) && dest->IsModeSet('I'));
+ return ((user != dest) && (!*user->oper) && (numeric == 319) && dest->IsModeSet('I'));
}
};