summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-24 21:28:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-24 21:28:20 +0000
commit451f72067fd9a90a2d993bc64e475b8e139a018f (patch)
tree0c3319fa6b67f4bae698609e2313c035de022342 /src
parent4dfc2e1e51f9dd83540f53b5473c041d1ca1d84b (diff)
Double whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_censor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index a108f45c6..9d2a26191 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -33,17 +33,17 @@ class CensorUser : public ModeHandler
{
if (adding)
{
- if (!channel->IsModeSet('G'))
+ if (!dest->IsModeSet('G'))
{
- channel->SetMode('G',true);
+ dest->SetMode('G',true);
return MODEACTION_ALLOW;
}
}
else
{
- if (channel->IsModeSet('G'))
+ if (dest->IsModeSet('G'))
{
- channel->SetMode('G',false);
+ dest->SetMode('G',false);
return MODEACTION_ALLOW;
}
}
@@ -65,7 +65,7 @@ class CensorChannel : public ModeHandler
{
if (!channel->IsModeSet('G'))
{
- channel->SetMode('G',false);
+ channel->SetMode('G',true);
return MODEACTION_ALLOW;
}
}