summaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_censor.cpp')
-rw-r--r--src/modules/m_censor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index bd8485e42..a108f45c6 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -33,17 +33,17 @@ class CensorUser : public ModeHandler
{
if (adding)
{
- if (!dest->IsModeSet('G'))
+ if (!channel->IsModeSet('G'))
{
- dest->SetMode('G',true);
+ channel->SetMode('G',true);
return MODEACTION_ALLOW;
}
}
else
{
- if (dest->IsModeSet('G'))
+ if (channel->IsModeSet('G'))
{
- dest->SetMode('G',false);
+ channel->SetMode('G',false);
return MODEACTION_ALLOW;
}
}