From 3b548c7e7279bcbf325c166da67e66384a26215f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 5 Oct 2006 16:23:53 +0000 Subject: Was checking 'channel', not 'dest'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5421 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_showwhois.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index d1d61ae61..42fe2f45b 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -26,7 +26,7 @@ class SeeWhois : public ModeHandler if (adding) { - if (!channel->IsModeSet('W')) + if (!dest->IsModeSet('W')) { dest->SetMode('W',true); return MODEACTION_ALLOW; @@ -34,7 +34,7 @@ class SeeWhois : public ModeHandler } else { - if (channel->IsModeSet('W')) + if (dest->IsModeSet('W')) { dest->SetMode('W',false); return MODEACTION_ALLOW; -- cgit v1.2.3