From a85c2d262d1ab3bf5745a146d905705d0a0b6983 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 30 Mar 2007 22:48:21 +0000 Subject: hidechans: allow showing on self whois, QA, test if you're bored :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6719 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_hidechans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } }; -- cgit v1.2.3