diff options
| author | 2006-12-24 21:28:20 +0000 | |
|---|---|---|
| committer | 2006-12-24 21:28:20 +0000 | |
| commit | 451f72067fd9a90a2d993bc64e475b8e139a018f (patch) | |
| tree | 0c3319fa6b67f4bae698609e2313c035de022342 /src/modules/m_censor.cpp | |
| parent | Whoops! (diff) | |
| download | inspircd++-451f72067fd9a90a2d993bc64e475b8e139a018f.tar.gz inspircd++-451f72067fd9a90a2d993bc64e475b8e139a018f.tar.bz2 inspircd++-451f72067fd9a90a2d993bc64e475b8e139a018f.zip | |
Double whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 10 |
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; } } |
