From 451f72067fd9a90a2d993bc64e475b8e139a018f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Dec 2006 21:28:20 +0000 Subject: Double whoops git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_censor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3