diff options
-rw-r--r-- | src/modules/m_showwhois.cpp | 4 |
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; |