summaryrefslogtreecommitdiff
path: root/src/modules/m_showwhois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-05 16:23:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-05 16:23:53 +0000
commit3b548c7e7279bcbf325c166da67e66384a26215f (patch)
tree6cfd1ac9fdc8aec59670cba324288fe841680d01 /src/modules/m_showwhois.cpp
parent4e557a7e7a8617a2e82ddc2b3373efda458440cd (diff)
Was checking 'channel', not 'dest'.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5421 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r--src/modules/m_showwhois.cpp4
1 files changed, 2 insertions, 2 deletions
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;